GraphQL\Tests\StartWarsValidationTest::testDisallowsObjectFieldsOnInterfaces PHP Метод

testDisallowsObjectFieldsOnInterfaces() публичный Метод

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