Files
piratepoet/mailpoet/tests/integration/Util/Notices/AfterMigrationNoticeTest.php
Jan Jakes 9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00

26 lines
644 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();
}
}