Files
piratepoet/tests/unit/Util/Notices/AfterMigrationNoticeTest.php
Pavel Dohnal 017918c870 Add after migration notice
[MAILPOET-1492]
2018-09-19 10:27:04 +02:00

28 lines
646 B
PHP

<?php
namespace MailPoet\Util\Notices;
class AfterMigrationNoticeTest extends \MailPoetTest {
public function testItDoesntDisplayIfShouldntDisplay() {
$notice = new AfterMigrationNotice();
$result = $notice->init(false);
expect($result)->isEmpty();
}
public function testItDoesntDisplayIfDisabled() {
$notice = new AfterMigrationNotice();
$notice->disable();
$result = $notice->init(true);
expect($result)->isEmpty();
}
public function testItDisplayIfEnabled() {
$notice = new AfterMigrationNotice();
$notice->enable();
$result = $notice->init(true);
expect($result)->notEmpty();
}
}