|
2 | 2 |
|
3 | 3 | namespace TheCodingMachine\GraphQLite; |
4 | 4 |
|
5 | | -use Doctrine\Common\Annotations\AnnotationReader; |
6 | | -use GraphQL\Deferred; |
7 | 5 | use GraphQL\Type\Definition\BooleanType; |
8 | 6 | use GraphQL\Type\Definition\EnumType; |
9 | 7 | use GraphQL\Type\Definition\FloatType; |
|
20 | 18 | use stdClass; |
21 | 19 | use Symfony\Component\Cache\Adapter\ArrayAdapter; |
22 | 20 | use Symfony\Component\Cache\Psr16Cache; |
23 | | -use Symfony\Component\Cache\Simple\ArrayCache; |
24 | 21 | use TheCodingMachine\GraphQLite\Annotations\Exceptions\InvalidParameterException; |
25 | 22 | use TheCodingMachine\GraphQLite\Fixtures\TestController; |
26 | 23 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerNoReturnType; |
|
30 | 27 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithInvalidParameterAnnotation; |
31 | 28 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithParamDateTime; |
32 | 29 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithFailWith; |
33 | | -use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithInputType; |
34 | 30 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithInvalidInputType; |
35 | 31 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithNullableArray; |
36 | | -use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithParamIterator; |
37 | 32 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithReturnDateTime; |
38 | 33 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithUnionInputParam; |
39 | 34 | use TheCodingMachine\GraphQLite\Fixtures\TestEnum; |
40 | 35 | use TheCodingMachine\GraphQLite\Fixtures\TestTypeWithInvalidPrefetchMethod; |
41 | 36 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithInvalidReturnType; |
42 | | -use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithIterableParam; |
43 | 37 | use TheCodingMachine\GraphQLite\Fixtures\TestControllerWithIterableReturnType; |
44 | 38 | use TheCodingMachine\GraphQLite\Fixtures\TestDoubleReturnTag; |
45 | 39 | use TheCodingMachine\GraphQLite\Fixtures\TestFieldBadInputType; |
46 | 40 | use TheCodingMachine\GraphQLite\Fixtures\TestFieldBadOutputType; |
47 | 41 | use TheCodingMachine\GraphQLite\Fixtures\TestObject; |
48 | | -use TheCodingMachine\GraphQLite\Fixtures\TestResolveInfo; |
49 | 42 | use TheCodingMachine\GraphQLite\Fixtures\TestSelfType; |
50 | 43 | use TheCodingMachine\GraphQLite\Fixtures\TestSourceFieldBadOutputType; |
51 | 44 | use TheCodingMachine\GraphQLite\Fixtures\TestSourceFieldBadOutputType2; |
|
59 | 52 | use TheCodingMachine\GraphQLite\Fixtures\TestTypeWithMagicProperty; |
60 | 53 | use TheCodingMachine\GraphQLite\Fixtures\TestTypeWithPrefetchMethod; |
61 | 54 | use TheCodingMachine\GraphQLite\Fixtures\TestTypeWithSourceFieldInterface; |
62 | | -use TheCodingMachine\GraphQLite\Containers\EmptyContainer; |
63 | | -use TheCodingMachine\GraphQLite\Containers\BasicAutoWiringContainer; |
64 | 55 | use TheCodingMachine\GraphQLite\Fixtures\TestTypeWithSourceFieldInvalidParameterAnnotation; |
65 | 56 | use TheCodingMachine\GraphQLite\Mappers\CannotMapTypeException; |
66 | 57 | use TheCodingMachine\GraphQLite\Mappers\CannotMapTypeExceptionInterface; |
67 | | -use TheCodingMachine\GraphQLite\Mappers\Parameters\ResolveInfoParameterHandler; |
68 | | -use TheCodingMachine\GraphQLite\Mappers\Root\BaseTypeMapper; |
69 | | -use TheCodingMachine\GraphQLite\Mappers\Root\CompositeRootTypeMapper; |
70 | 58 | use TheCodingMachine\GraphQLite\Middlewares\AuthorizationFieldMiddleware; |
71 | 59 | use TheCodingMachine\GraphQLite\Middlewares\BadExpressionInSecurityException; |
72 | 60 | use TheCodingMachine\GraphQLite\Middlewares\MissingMagicGetException; |
|
78 | 66 | use TheCodingMachine\GraphQLite\Security\VoidAuthorizationService; |
79 | 67 | use TheCodingMachine\GraphQLite\Annotations\Query; |
80 | 68 | use TheCodingMachine\GraphQLite\Types\DateTimeType; |
81 | | -use function var_dump; |
82 | 69 |
|
83 | 70 | class FieldsBuilderTest extends AbstractQueryProviderTest |
84 | 71 | { |
@@ -718,9 +705,9 @@ public function testQueryProviderWithNullableArray(): void |
718 | 705 | $this->assertInstanceOf(NonNull::class, $usersQuery->args[0]->getType()); |
719 | 706 | $this->assertInstanceOf(ListOfType::class, $usersQuery->args[0]->getType()->getWrappedType()); |
720 | 707 | $this->assertInstanceOf(IntType::class, $usersQuery->args[0]->getType()->getWrappedType()->getWrappedType()); |
721 | | - $this->assertInstanceOf(NonNull::class, $usersQuery->type); |
722 | | - $this->assertInstanceOf(ListOfType::class, $usersQuery->type->getWrappedType()); |
723 | | - $this->assertInstanceOf(IntType::class, $usersQuery->type->getWrappedType()->getWrappedType()); |
| 708 | + $this->assertInstanceOf(NonNull::class, $usersQuery->getType()); |
| 709 | + $this->assertInstanceOf(ListOfType::class, $usersQuery->getType()->getWrappedType()); |
| 710 | + $this->assertInstanceOf(IntType::class, $usersQuery->getType()->getWrappedType()->getWrappedType()); |
724 | 711 | } |
725 | 712 |
|
726 | 713 | public function testQueryProviderWithParamDateTime(): void |
|
0 commit comments