GraphQL\Tests\Validator\OverlappingFieldsCanBeMergedTest::testAllowsDifferentArgsWhereNoConflictIsPossible PHP Méthode

testAllowsDifferentArgsWhereNoConflictIsPossible() public méthode

    public function testAllowsDifferentArgsWhereNoConflictIsPossible()
    {
        // This is valid since no object can be both a "Dog" and a "Cat", thus
        // these fields can never overlap.
        $this->expectPassesRule(new OverlappingFieldsCanBeMerged(), '
      fragment conflictingArgs on Pet {
        ... on Dog {
          name(surname: true)
        }
        ... on Cat {
          name
        }
      }
        ');
    }