diff --git a/tests/integration/TestNotice.php b/tests/integration/TestNotice.php index 96101e13a34312d4ea0bb7ea036bec2126c80645..9035800ad972081c1a5fd6c626e0bdbb3b1fbb79 100644 --- a/tests/integration/TestNotice.php +++ b/tests/integration/TestNotice.php @@ -16,7 +16,7 @@ class TestNotice extends WP_UnitTestCase public function testShowNotice() { - $notice = new Notice(Notice::NOTICE_TYPE_INFO, 'test'); + $notice = new Notice('test', Notice::NOTICE_TYPE_INFO ); $this->expectOutputString('<div class="notice notice-info"><p>test</p></div>'); @@ -25,7 +25,7 @@ class TestNotice extends WP_UnitTestCase public function testShowNoticeDismissible() { - $notice = new Notice(Notice::NOTICE_TYPE_INFO, 'test', true); + $notice = new Notice('test', Notice::NOTICE_TYPE_INFO, true); $this->expectOutputString('<div class="notice notice-info is-dismissible"><p>test</p></div>'); diff --git a/tests/integration/TestPermanentDismissinleNotice.php b/tests/integration/TestPermanentDismissinleNotice.php index 2a403359a2b0bc2bc7b5a1ae8dc35576a546f699..b250b3247070ac2febff20877391bf847639eb53 100644 --- a/tests/integration/TestPermanentDismissinleNotice.php +++ b/tests/integration/TestPermanentDismissinleNotice.php @@ -41,8 +41,8 @@ class TestPermanentDismissinleNotice extends WP_UnitTestCase public function testShowNotice() { $notice = new PermanentDismissibleNotice( - PermanentDismissibleNotice::NOTICE_TYPE_INFO, 'test', + PermanentDismissibleNotice::NOTICE_TYPE_INFO, 'test_name' );