From 67f5615c07945555f9b653d184ebf58ed241603d Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Sun, 7 Apr 2024 14:39:55 +0200 Subject: [PATCH] fix(WPTestCase) exclude WP_Block_Bindings_Registry::instance prop from backup --- src/TestCase/WPTestCase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TestCase/WPTestCase.php b/src/TestCase/WPTestCase.php index 521454521..4cb9594fa 100644 --- a/src/TestCase/WPTestCase.php +++ b/src/TestCase/WPTestCase.php @@ -135,6 +135,7 @@ class WPTestCase extends Unit protected $backupStaticAttributesExcludeList = [ // WordPress 'WP_Block_Type_Registry' => ['instance'], + 'WP_Block_Bindings_Registry' => ['instance'], // wp-browser 'lucatume\WPBrowser\Events\Dispatcher' => ['eventDispatcher'], self::class => ['coreTestCaseMap'],