diff --git a/tests/test-admin.php b/tests/test-admin.php index 95d5548..dd7b285 100644 --- a/tests/test-admin.php +++ b/tests/test-admin.php @@ -40,7 +40,6 @@ class AdminTest extends \WP_Mock\Tools\TestCase { $this->core = $this->createMock(Core::class); // Set up WordPress function mocks - WP_Mock::userFunction('is_admin', ['times' => 1, 'return' => true]); WP_Mock::expectActionAdded('admin_enqueue_scripts', [$this->admin, 'enqueue_admin_assets']); // Instantiate the class under test *after* setting up mocks