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

testSameWrappedScalarReturnTypes() public méthode

    public function testSameWrappedScalarReturnTypes()
    {
        $this->expectPassesRuleWithSchema($this->getTestSchema(), new OverlappingFieldsCanBeMerged(), '
        {
          someBox {
            ...on NonNullStringBox1 {
              scalar
            }
            ...on NonNullStringBox2 {
              scalar
            }
          }
        }
        ');
    }