-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
| Q | A |
|---|---|
| Version | 0.2.0 |
Support Question
I'm using Laravel 5.8, I think that is a stupid problem, but I can't resolve by myself. This is my test file:
<?php
namespace Tests\Feature\GraphQL;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use KunicMarko\GraphQLTest\Bridge\Laravel\TestCase;
use KunicMarko\GraphQLTest\Operation\Query;
class OiServicesGraphQLTest extends TestCase
{
public static $endpoint = '/graphql/oi_services';
protected function setUp(): void
{
parent::setUp();
$this->setDefaultHeaders([
'Authorization' => "Bearer ...",
'Content-Type' => 'application/json',
'Accept' => 'application/json',
]);
}
/** @test */
public function listOfServicesQuery(): void
{
$response = $this->query(
new Query('services', [], [
'id',
'os_number',
'created_at',
'comission',
'status' => [
'description',
],
])
);
}
}
When I try to run, I got this error:
PHP Fatal error: Class Tests\Feature\GraphQL\OiServicesGraphQLTest contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Foundation\Testing\TestCase::createApplication) in /Volumes/Joker/multilaser-projetos/multiplik-pro/tests/Feature/GraphQL/OiServicesGraphQLTest.php on line 10
Should I put some piece of code in my class?
I think that i don't need implement the method createApplication, right?
Thanks for help me!
Metadata
Metadata
Assignees
Labels
No labels