GraphQL\Tests\Validator\KnownDirectivesTest::testWithManyUnknownDirectives PHP Метод

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

    public function testWithManyUnknownDirectives()
    {
        $this->expectFailsRule(new KnownDirectives(), '
      {
        dog @unknown(directive: "value") {
          name
        }
        human @unknown(directive: "value") {
          name
          pets @unknown(directive: "value") {
            name
          }
        }
      }
        ', [$this->unknownDirective('unknown', 3, 13), $this->unknownDirective('unknown', 6, 15), $this->unknownDirective('unknown', 8, 16)]);
    }