From f443c6b1bacb4272d3087fe4c8de4bde365b0b71 Mon Sep 17 00:00:00 2001 From: vladar Date: Sat, 22 Oct 2016 17:28:24 +0700 Subject: [PATCH] Fixed broken test --- tests/Type/DefinitionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Type/DefinitionTest.php b/tests/Type/DefinitionTest.php index d2a0b68..0292ac8 100644 --- a/tests/Type/DefinitionTest.php +++ b/tests/Type/DefinitionTest.php @@ -457,6 +457,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase $this->inputObjectType ]; + // TODO: extract config validation to separate test Config::enableValidation(); foreach ($badUnionTypes as $type) { try { @@ -464,7 +465,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase $this->fail('Expected exception not thrown'); } catch (\Exception $e) { $this->assertSame( - 'Error in "BadUnion" type definition: expecting callable or instance of GraphQL\Type\Definition\ObjectType at "types:0", but got "' . Utils::getVariableType($type) . '"', + 'Error in "BadUnion" type definition: expecting callable or ObjectType definition at "types:0", but got "' . Utils::getVariableType($type) . '"', $e->getMessage() ); }