From 06ba55d621da8c151836a14b4988bd8728e4e979 Mon Sep 17 00:00:00 2001
From: Marcin Kolanko <marcin.kolanko@wpdesk.net>
Date: Fri, 16 May 2025 16:19:12 +0200
Subject: [PATCH] fix: tests

---
 tests/codeception/tests/integration/AjaxHandlerTest.php       | 4 ++--
 tests/codeception/tests/integration/FunctionsTest.php         | 4 ++--
 tests/codeception/tests/integration/NoticeTest.php            | 4 ++--
 .../tests/integration/PermanentDismissinleNoticeTest.php      | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/codeception/tests/integration/AjaxHandlerTest.php b/tests/codeception/tests/integration/AjaxHandlerTest.php
index ec8af88..f89bc8b 100644
--- a/tests/codeception/tests/integration/AjaxHandlerTest.php
+++ b/tests/codeception/tests/integration/AjaxHandlerTest.php
@@ -12,13 +12,13 @@ class AjaxHandlerTest extends WPTestCase {
 	const NOTICE_NAME = 'test_notice_name';
 	const WP_DEFAULT_PRIORITY = 10;
 
-    public function setUp() {
+    public function setUp(): void {
         parent::setUp();
         add_filter( 'wp_doing_ajax', '__return_true' );
         add_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 );
     }
 
-    public function tearDown() {
+    public function tearDown(): void {
         parent::tearDown();
     }
 
diff --git a/tests/codeception/tests/integration/FunctionsTest.php b/tests/codeception/tests/integration/FunctionsTest.php
index 05117cb..12012af 100644
--- a/tests/codeception/tests/integration/FunctionsTest.php
+++ b/tests/codeception/tests/integration/FunctionsTest.php
@@ -11,11 +11,11 @@ use \WPDesk\Notice\PermanentDismissibleNotice;
  */
 class FunctionsTest extends WPTestCase {
 
-    public function setUp() {
+    public function setUp():void {
         parent::setUp();
     }
 
-    public function tearDown() {
+    public function tearDown():void {
         parent::tearDown();
     }
 
diff --git a/tests/codeception/tests/integration/NoticeTest.php b/tests/codeception/tests/integration/NoticeTest.php
index feb1c1e..89ebd70 100644
--- a/tests/codeception/tests/integration/NoticeTest.php
+++ b/tests/codeception/tests/integration/NoticeTest.php
@@ -7,11 +7,11 @@ use \WPDesk\Notice\Notice;
 
 class NoticeTest extends WPTestCase {
 
-    public function setUp() {
+    public function setUp():void {
         parent::setUp();
     }
 
-    public function tearDown() {
+    public function tearDown():void {
         parent::tearDown();
     }
 
diff --git a/tests/codeception/tests/integration/PermanentDismissinleNoticeTest.php b/tests/codeception/tests/integration/PermanentDismissinleNoticeTest.php
index ec59a58..25d18fa 100644
--- a/tests/codeception/tests/integration/PermanentDismissinleNoticeTest.php
+++ b/tests/codeception/tests/integration/PermanentDismissinleNoticeTest.php
@@ -9,11 +9,11 @@ class PermanentDismissinleNoticeTest extends WPTestCase {
 
 	const NOTICE_NAME = 'test_notice_name';
 
-    public function setUp() {
+    public function setUp():void {
         parent::setUp();
     }
 
-    public function tearDown() {
+    public function tearDown():void {
         parent::tearDown();
     }
 
-- 
GitLab