From 0046b11359b7f52a0be315b297446bfcb054ff75 Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Sat, 6 Oct 2018 12:43:41 +0200 Subject: [PATCH] Fixed tests. --- tests/integration/TestNotice.php | 4 ++-- tests/integration/TestPermanentDismissinleNotice.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/TestNotice.php b/tests/integration/TestNotice.php index 96101e1..9035800 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 2a40335..b250b32 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' ); -- GitLab