55use DMS \PHPUnitExtensions \ArraySubset \ArraySubsetAsserts ;
66use GraphQL \Deferred ;
77use GraphQL \GraphQL ;
8- use GraphQL \Language \AST \DocumentNode ;
98use GraphQL \Tests \Executor \TestClasses \Cat ;
109use GraphQL \Tests \Executor \TestClasses \Dog ;
1110use GraphQL \Tests \Executor \TestClasses \SpyValidationCacheAdapter ;
12- use GraphQL \Tests \PsrValidationCacheAdapter ;
1311use GraphQL \Type \Definition \InterfaceType ;
1412use GraphQL \Type \Definition \ObjectType ;
1513use GraphQL \Type \Definition \Type ;
@@ -28,7 +26,7 @@ public function testIsValidationCachedWithAdapter(): void
2826 $ petType = new InterfaceType ([
2927 'name ' => 'Pet ' ,
3028 'fields ' => [
31- 'name ' => [ ' type ' => Type::string ()] ,
29+ 'name ' => Type::string (),
3230 ],
3331 ]);
3432
@@ -37,8 +35,8 @@ public function testIsValidationCachedWithAdapter(): void
3735 'interfaces ' => [$ petType ],
3836 'isTypeOf ' => static fn ($ obj ): Deferred => new Deferred (static fn (): bool => $ obj instanceof Dog),
3937 'fields ' => [
40- 'name ' => [ ' type ' => Type::string ()] ,
41- 'woofs ' => [ ' type ' => Type::boolean ()] ,
38+ 'name ' => Type::string (),
39+ 'woofs ' => Type::boolean (),
4240 ],
4341 ]);
4442
@@ -47,8 +45,8 @@ public function testIsValidationCachedWithAdapter(): void
4745 'interfaces ' => [$ petType ],
4846 'isTypeOf ' => static fn ($ obj ): Deferred => new Deferred (static fn (): bool => $ obj instanceof Cat),
4947 'fields ' => [
50- 'name ' => [ ' type ' => Type::string ()] ,
51- 'meows ' => [ ' type ' => Type::boolean ()] ,
48+ 'name ' => Type::string (),
49+ 'meows ' => Type::boolean (),
5250 ],
5351 ]);
5452
0 commit comments