Skip to content

Commit a6c2a18

Browse files
committed
Fix tests namespaces
1 parent e748140 commit a6c2a18

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

tests/Config/Parser/MetadataParser/TypeGuesser/DocBlockTypeGuesserTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
declare(strict_types=1);
44

5-
namespace Overblog\GraphQLBundle\Tests\Config\Parser;
5+
namespace Overblog\GraphQLBundle\Tests\Config\Parser\MetadataParser\TypeGuesser;
66

77
use Exception;
88
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\ClassesTypesMap;
99
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser\DocBlockTypeGuesser;
1010
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser\TypeGuessingException;
11+
use Overblog\GraphQLBundle\Tests\Config\Parser\TestCase;
1112
use ReflectionClass;
1213
use ReflectionMethod;
1314
use ReflectionProperty;
@@ -83,7 +84,7 @@ public function guessErrorDataProvider(): iterable
8384
foreach ($this->reflectors as $reflectorClass => $tag) {
8485
yield ['int|float', $reflectorClass, 'Tag @'.$tag.' found, but composite types are only allowed with null'];
8586
yield ['array<int|float>', $reflectorClass, 'Tag @'.$tag.' found, but composite types in array or iterable are only allowed with null'];
86-
yield ['UnknownClass', $reflectorClass, 'Tag @'.$tag.' found, but target object "Overblog\GraphQLBundle\Tests\Config\Parser\UnknownClass" is not a GraphQL Type class'];
87+
yield ['UnknownClass', $reflectorClass, 'Tag @'.$tag.' found, but target object "Overblog\GraphQLBundle\Tests\Config\Parser\MetadataParser\TypeGuesser\UnknownClass" is not a GraphQL Type class'];
8788
yield ['object', $reflectorClass, 'Tag @'.$tag.' found, but type "object" is too generic'];
8889
yield ['mixed[]', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type'];
8990
yield ['array<mixed>', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type'];

tests/Config/Parser/MetadataParser/TypeGuesser/DoctrineTypeGuesserTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace Overblog\GraphQLBundle\Tests\Config\Parser;
5+
namespace Overblog\GraphQLBundle\Tests\Config\Parser\MetadataParser\TypeGuesser;
66

77
use Doctrine\ORM\Mapping\Column;
88
use Exception;
99
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\ClassesTypesMap;
1010
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser\DoctrineTypeGuesser;
1111
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser\TypeGuessingException;
12+
use Overblog\GraphQLBundle\Tests\Config\Parser\TestCase;
1213
use ReflectionClass;
1314

1415
class DoctrineTypeGuesserTest extends TestCase

tests/Functional/TypeShorthand/TypeShorthandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Overblog\GraphQLBundle\Tests\Functional\AutoConfigure;
5+
namespace Overblog\GraphQLBundle\Tests\Functional\TypeShorthand;
66

77
use Doctrine\Common\Annotations\Reader;
88
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
@@ -26,6 +26,6 @@ public function testQuery(): void
2626
$query = 'query { user(auth: {username: "bar", password: "baz"}) {username, address {street, zipcode}} }';
2727
$expectedData = ['user' => ['username' => 'bar', 'address' => ['street' => 'bar foo street', 'zipcode' => '12345']]];
2828

29-
$this->assertGraphQL($query, $expectedData);
29+
static::assertGraphQL($query, $expectedData);
3030
}
3131
}

0 commit comments

Comments
 (0)