GraphQL\Tests\Validator\KnownTypeNamesTest::testIgnoresTypeDefinitions PHP Method

testIgnoresTypeDefinitions() public method

    public function testIgnoresTypeDefinitions()
    {
        $this->expectFailsRule(new KnownTypeNames(), '
      type NotInTheSchema {
        field: FooBar
      }
      interface FooBar {
        field: NotInTheSchema
      }
      union U = A | B
      input Blob {
        field: UnknownType
      }
      query Foo($var: NotInTheSchema) {
        user(id: $var) {
          id
        }
      }
    ', [$this->unknownType('NotInTheSchema', 12, 23)]);
    }