Youshido\Tests\Parser\ParserTest::testFragmentWithFields PHP Method

testFragmentWithFields() public method

    public function testFragmentWithFields()
    {
        $parser = new Parser();
        $data = $parser->parse('
            fragment FullType on __Type {
                kind
                fields {
                    name
                }
            }');
        $this->assertEquals(['queries' => [], 'mutations' => [], 'fragments' => [new Fragment('FullType', '__Type', [new Field('kind', null, [], new Location(3, 17)), new Query('fields', null, [], [new Field('name', null, [], new Location(5, 21))], new Location(4, 17))], new Location(2, 22))], 'fragmentReferences' => [], 'variables' => [], 'variableReferences' => []], $data);
    }