From 20cb6ccd77b015b444127669656d733894f64c9a Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Thu, 9 Jun 2022 15:01:41 +0200
Subject: [PATCH] feature(readme): readme

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

diff --git a/tests/integration/TestAjaxHandler.php b/tests/integration/TestAjaxHandler.php
index f930d5c..2b0c605 100644
--- a/tests/integration/TestAjaxHandler.php
+++ b/tests/integration/TestAjaxHandler.php
@@ -42,6 +42,10 @@ class TestAjaxHandler extends WP_UnitTestCase
 
     public function testEnqueueAdminScripts()
     {
+        $screen = get_current_screen();
+        if ( !isset( $screen->id ) ) {
+            $screen->id = 'test';
+        }
         $ajaxHandler = new AjaxHandler(self::ASSETS_URL);
         $ajaxHandler->hooks();
         do_action('admin_enqueue_scripts');
-- 
GitLab