Fixed several broken tests

This commit is contained in:
vladar 2016-09-14 19:36:10 +07:00
parent 560ad20954
commit f9e97ea296
2 changed files with 2 additions and 2 deletions

View File

@ -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()]]);
}
/**

View File

@ -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;