From 912b7137b2343abf8ce802f63d0e8bdaafd7d2df Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Thu, 25 Apr 2024 16:42:30 -0400 Subject: [PATCH] fix: Adds support for WPGraphQL v1.24.x --- src/TestCase/WPGraphQLTestCommon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } /**