Files
piratepoet/tests/integration/Util/Notices/AfterMigrationNoticeTest.php
Jan Jakeš b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00: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();
}
}