Add missing stub

This commit is contained in:
Alex P 2023-04-17 14:30:55 +03:00
parent efa3d5b02a
commit ae978771c0
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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');