From ae978771c0ecbb75bfdffc318a46bf20d9f5d28d Mon Sep 17 00:00:00 2001 From: Alex P Date: Mon, 17 Apr 2023 14:30:55 +0300 Subject: [PATCH] Add missing stub --- tests/PHPUnit/ModularTestCase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/PHPUnit/ModularTestCase.php b/tests/PHPUnit/ModularTestCase.php index 8287708ac..a77f359e2 100644 --- a/tests/PHPUnit/ModularTestCase.php +++ b/tests/PHPUnit/ModularTestCase.php @@ -23,6 +23,7 @@ class ModularTestCase extends TestCase when('admin_url')->returnArg(); when('plugins_url')->returnArg(); when('plugin_dir_path')->alias(function ($file) { return trailingslashit(dirname($file)); }); + when('is_plugin_active')->justReturn(true); when('get_current_blog_id')->justReturn(42); when('get_site_url')->justReturn('example.com'); when('get_bloginfo')->justReturn('My Shop');