5
5
use DMS \PHPUnitExtensions \ArraySubset \ArraySubsetAsserts ;
6
6
use GraphQL \Deferred ;
7
7
use GraphQL \GraphQL ;
8
- use GraphQL \Language \AST \DocumentNode ;
9
8
use GraphQL \Tests \Executor \TestClasses \Cat ;
10
9
use GraphQL \Tests \Executor \TestClasses \Dog ;
11
10
use GraphQL \Tests \Executor \TestClasses \SpyValidationCacheAdapter ;
12
- use GraphQL \Tests \PsrValidationCacheAdapter ;
13
11
use GraphQL \Type \Definition \InterfaceType ;
14
12
use GraphQL \Type \Definition \ObjectType ;
15
13
use GraphQL \Type \Definition \Type ;
@@ -28,7 +26,7 @@ public function testIsValidationCachedWithAdapter(): void
28
26
$ petType = new InterfaceType ([
29
27
'name ' => 'Pet ' ,
30
28
'fields ' => [
31
- 'name ' => [ ' type ' => Type::string ()] ,
29
+ 'name ' => Type::string (),
32
30
],
33
31
]);
34
32
@@ -37,8 +35,8 @@ public function testIsValidationCachedWithAdapter(): void
37
35
'interfaces ' => [$ petType ],
38
36
'isTypeOf ' => static fn ($ obj ): Deferred => new Deferred (static fn (): bool => $ obj instanceof Dog),
39
37
'fields ' => [
40
- 'name ' => [ ' type ' => Type::string ()] ,
41
- 'woofs ' => [ ' type ' => Type::boolean ()] ,
38
+ 'name ' => Type::string (),
39
+ 'woofs ' => Type::boolean (),
42
40
],
43
41
]);
44
42
@@ -47,8 +45,8 @@ public function testIsValidationCachedWithAdapter(): void
47
45
'interfaces ' => [$ petType ],
48
46
'isTypeOf ' => static fn ($ obj ): Deferred => new Deferred (static fn (): bool => $ obj instanceof Cat),
49
47
'fields ' => [
50
- 'name ' => [ ' type ' => Type::string ()] ,
51
- 'meows ' => [ ' type ' => Type::boolean ()] ,
48
+ 'name ' => Type::string (),
49
+ 'meows ' => Type::boolean (),
52
50
],
53
51
]);
54
52
0 commit comments