Files
piratepoet/mailpoet/tests/integration/Util/Notices/AfterMigrationNoticeTest.php
Rodrigo Primo e4136fee8c Replace expect()->isEmpty() with verify()->empty()
codeception/verify 2.1 removed support for expect()->isEmpty() so we need
to replace it with verify()->empty().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00

26 lines
667 B
PHP

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