mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +03:00
Fixed several broken tests
This commit is contained in:
parent
560ad20954
commit
f9e97ea296
@ -49,7 +49,7 @@ class LazyInterfaceTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
]);
|
||||
|
||||
$this->schema = new Schema(['query' => $query]);
|
||||
$this->schema = new Schema(['query' => $query, 'types' => [$this->getTestObjectType()]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -162,7 +162,7 @@ class StarWarsSchema
|
||||
'friends' => [
|
||||
'type' => Type::listOf($characterInterface),
|
||||
'description' => 'The friends of the human, or an empty list if they have none.',
|
||||
'resolve' => function ($human, $args, ResolveInfo $info) {
|
||||
'resolve' => function ($human, $args, $context, ResolveInfo $info) {
|
||||
$fieldSelection = $info->getFieldSelection();
|
||||
$fieldSelection['id'] = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user