Skip to content
Snippets Groups Projects
Commit 0046b113 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Fixed tests.

parent 109db09b
No related branches found
No related tags found
1 merge request!4Feature/factory
Pipeline #7340 passed
......@@ -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>');
......
......@@ -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'
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment