GraphQL\Tests\Validator\NoFragmentCyclesTest::testNoSpreadingItselfDeeply PHP Method

testNoSpreadingItselfDeeply() public method

    public function testNoSpreadingItselfDeeply()
    {
        $this->expectFailsRule(new NoFragmentCycles(), '
      fragment fragA on Dog { ...fragB }
      fragment fragB on Dog { ...fragC }
      fragment fragC on Dog { ...fragO }
      fragment fragX on Dog { ...fragY }
      fragment fragY on Dog { ...fragZ }
      fragment fragZ on Dog { ...fragO }
      fragment fragO on Dog { ...fragP }
      fragment fragP on Dog { ...fragA, ...fragX }
    ', [FormattedError::create(NoFragmentCycles::cycleErrorMessage('fragA', ['fragB', 'fragC', 'fragO', 'fragP']), [new SourceLocation(2, 31), new SourceLocation(3, 31), new SourceLocation(4, 31), new SourceLocation(8, 31), new SourceLocation(9, 31)]), FormattedError::create(NoFragmentCycles::cycleErrorMessage('fragO', ['fragP', 'fragX', 'fragY', 'fragZ']), [new SourceLocation(8, 31), new SourceLocation(9, 41), new SourceLocation(5, 31), new SourceLocation(6, 31), new SourceLocation(7, 31)])]);
    }