mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
Fixed broken test
This commit is contained in:
parent
276a58f6d1
commit
f443c6b1ba
@ -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()
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user