public function testNoSpreadingItselfIndirectlyWithinInlineFragment()
{
$this->expectFailsRule(new NoFragmentCycles(), '
fragment fragA on Pet {
... on Dog {
...fragB
}
}
fragment fragB on Pet {
... on Dog {
...fragA
}
}
', [FormattedError::create(NoFragmentCycles::cycleErrorMessage('fragA', ['fragB']), [new SourceLocation(4, 11), new SourceLocation(9, 11)])]);
}