GraphQL\Tests\StartWarsValidationTest::testAllowsObjectFieldsInInlineFragments PHP Method

testAllowsObjectFieldsInInlineFragments() public method

    public function testAllowsObjectFieldsInInlineFragments()
    {
        $query = '
        query DroidFieldInFragment {
          hero {
            name
            ... on Droid {
              primaryFunction
            }
          }
        }
        ';
        $errors = $this->validationErrors($query);
        $this->assertEquals(true, empty($errors));
    }