GraphQL\Tests\Validator\ScalarLeafsTest::testScalarSelectionNotAllowedWithDirectives PHP Method

testScalarSelectionNotAllowedWithDirectives() public method

    public function testScalarSelectionNotAllowedWithDirectives()
    {
        $this->expectFailsRule(new ScalarLeafs(), '
      fragment scalarSelectionsNotAllowedWithDirectives on Dog {
        name @include(if: true) { isAlsoHumanName }
      }
        ', [$this->noScalarSubselection('name', 'String', 3, 33)]);
    }