diff --git a/src/TestCase/WPGraphQLTestCommon.php b/src/TestCase/WPGraphQLTestCommon.php index ca8dffa..707a189 100644 --- a/src/TestCase/WPGraphQLTestCommon.php +++ b/src/TestCase/WPGraphQLTestCommon.php @@ -62,8 +62,8 @@ public function clearSchema() { * @return void */ public function clearLoaderCache( $loader_name ) { - $loader = \WPGraphQL::get_app_context()->getLoader( $loader_name ); - $loader->clearAll(); + $loader = \WPGraphQL::get_app_context()->get_loader( $loader_name ); + $loader->clear_all(); } /**