GraphQL\Tests\Type\SchemaValidatorTest::testRejectsASchemaWithANonnullObjectAsAnInputFieldArg PHP Method

testRejectsASchemaWithANonnullObjectAsAnInputFieldArg() public method

    public function testRejectsASchemaWithANonnullObjectAsAnInputFieldArg()
    {
        // rejects a schema with a nonnull object as an input field arg
        $nonNullObject = new NonNull(new ObjectType(['name' => 'SomeOutputType', 'fields' => ['f' => ['type' => Type::float()]]]));
        $this->assertRejectingFieldArgOfType($nonNullObject);
    }
SchemaValidatorTest