Fix test workflow issues with WP_Mock and PHP 7.0 compatibility

This commit is contained in:
marcus committed 2025-04-18 15:46:16 +01:00
1 parent af48e84614
commit bfa528c90e
4 files changed
+35 -19

No files matched your search

+4
View File
@@ -8,6 +8,10 @@
// First, we need to load the composer autoloader so we can use WP Mock.
require_once dirname(__DIR__) . '/vendor/autoload.php';
// Import WP_Mock class
use WP_Mock\Tools\TestCase;
use WP_Mock;
// Now call the bootstrap method of WP Mock.
WP_Mock::bootstrap();