From c177c6af9fed16d524fed2a7ea813defc536371b Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Thu, 9 Jun 2022 14:31:55 +0200
Subject: [PATCH] feature(readme): readme

---
 tests/integration/TestAjaxHandler.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/integration/TestAjaxHandler.php b/tests/integration/TestAjaxHandler.php
index f930d5c..2f7ee00 100644
--- a/tests/integration/TestAjaxHandler.php
+++ b/tests/integration/TestAjaxHandler.php
@@ -44,6 +44,9 @@ 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;
 
-- 
GitLab