GraphQL\Tests\StartWarsValidationTest::testDisallowsObjectFieldsOnInterfaces PHP Method

testDisallowsObjectFieldsOnInterfaces() public method

    public function testDisallowsObjectFieldsOnInterfaces()
    {
        $query = '
        query DroidFieldOnCharacter {
          hero {
            name
            primaryFunction
          }
        }
        ';
        $errors = $this->validationErrors($query);
        $this->assertEquals(false, empty($errors));
    }