From 44411069634b86f255bb32c0e162e243ec98bfdd Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Fri, 18 Apr 2025 18:36:54 +0100 Subject: [PATCH] Fix: Remove unnecessary is_admin mock from AdminTest --- tests/test-admin.php | 1 - 1 file changed, 1 deletion(-) 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