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

checkValidationResult() private method

private checkValidationResult ( $validationErrors, $operationType )
    private function checkValidationResult($validationErrors, $operationType)
    {
        $this->assertNotEmpty($validationErrors, "Should not validate");
        $this->assertEquals(1, count($validationErrors));
        $this->assertEquals("Schema {$operationType} must be Object Type but got: SomeInputObject.", $validationErrors[0]->message);
    }
SchemaValidatorTest