From f9e97ea29623f32569cb412c6d7e57ffc20f6aae Mon Sep 17 00:00:00 2001 From: vladar Date: Wed, 14 Sep 2016 19:36:10 +0700 Subject: [PATCH] Fixed several broken tests --- tests/Executor/LazyInterfaceTest.php | 2 +- tests/StarWarsSchema.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Executor/LazyInterfaceTest.php b/tests/Executor/LazyInterfaceTest.php index 6f63149..d181d28 100644 --- a/tests/Executor/LazyInterfaceTest.php +++ b/tests/Executor/LazyInterfaceTest.php @@ -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()]]); } /** diff --git a/tests/StarWarsSchema.php b/tests/StarWarsSchema.php index 205ff62..1448077 100644 --- a/tests/StarWarsSchema.php +++ b/tests/StarWarsSchema.php @@ -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;