diff --git a/tests/integration/TestAjaxHandler.php b/tests/integration/TestAjaxHandler.php
index 2f7ee0001fa3392851ca8d76d9c10f9b81cd3a35..f930d5c566eb79c8e01eddf68fe381b70631cc53 100644
--- a/tests/integration/TestAjaxHandler.php
+++ b/tests/integration/TestAjaxHandler.php
@@ -44,9 +44,6 @@ class TestAjaxHandler extends WP_UnitTestCase
     {
         $ajaxHandler = new AjaxHandler(self::ASSETS_URL);
         $ajaxHandler->hooks();
-        global $current_screen;
-        $current_screen = new stdClass();
-        $current_screen->id = 'test';
         do_action('admin_enqueue_scripts');
         $registeredScripts = wp_scripts()->registered;