schema->assertValid(); // Assert true upon success. $this->assertTrue( true ); } catch ( \GraphQL\Error\InvariantViolation $e ) { // use --debug flag to view. codecept_debug( $e->getMessage() ); // Fail upon throwing $this->assertTrue( false ); } } // Test introspection query. public function testIntrospectionQuery() { $query = \GraphQL\Type\Introspection::getIntrospectionQuery(); $results = graphql( [ 'query' => $query ] ); $this->assertArrayNotHasKey( 'errors', $results ); } }