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