mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
Additional test case for input type fields definition as closure
This commit is contained in:
parent
d37fb34e96
commit
201fb7754f
@ -433,6 +433,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertSame($inputObject, $schema->getType('InputObject'));
|
$this->assertSame($inputObject, $schema->getType('InputObject'));
|
||||||
$this->assertEquals(count($inputObject->getFields()), 2);
|
$this->assertEquals(count($inputObject->getFields()), 2);
|
||||||
$this->assertSame($inputObject->getField('nested')->getType(), $inputObject);
|
$this->assertSame($inputObject->getField('nested')->getType(), $inputObject);
|
||||||
|
$this->assertSame($someMutation->getField('mutateSomething')->getArg('input')->getType(), $inputObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInterfaceTypeAllowsRecursiveDefinitions()
|
public function testInterfaceTypeAllowsRecursiveDefinitions()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user