From abeadc8d22459cd829b28250d9dc3db7b3954d3c Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Tue, 28 Jan 2020 14:07:33 -0500 Subject: [PATCH] IntrospectionQueryTest updated. --- tests/wpunit/IntrospectionQueryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpunit/IntrospectionQueryTest.php b/tests/wpunit/IntrospectionQueryTest.php index 4b8aab0f..484af6c5 100644 --- a/tests/wpunit/IntrospectionQueryTest.php +++ b/tests/wpunit/IntrospectionQueryTest.php @@ -20,8 +20,8 @@ class IntrospectionQueryTest extends \Codeception\TestCase\WPTestCase // Validate schema. public function testSchema() { try { - $schema = \WPGraphQL::get_schema(); - $schema->assertValid(); + $request = new \WPGraphQL\Request(); + $request->schema->assertValid(); // Assert true upon success. $this->assertTrue( true );