Skip to content

Commit f9e97ea

Browse files
committed
Fixed several broken tests
1 parent 560ad20 commit f9e97ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Executor/LazyInterfaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function setUp()
4949
}
5050
]);
5151

52-
$this->schema = new Schema(['query' => $query]);
52+
$this->schema = new Schema(['query' => $query, 'types' => [$this->getTestObjectType()]]);
5353
}
5454

5555
/**

tests/StarWarsSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static function build()
162162
'friends' => [
163163
'type' => Type::listOf($characterInterface),
164164
'description' => 'The friends of the human, or an empty list if they have none.',
165-
'resolve' => function ($human, $args, ResolveInfo $info) {
165+
'resolve' => function ($human, $args, $context, ResolveInfo $info) {
166166
$fieldSelection = $info->getFieldSelection();
167167
$fieldSelection['id'] = true;
168168

0 commit comments

Comments
 (0)