Fix code style and add checks

This commit is contained in:
Amine Ben hammou
2019-06-25 11:36:01 +01:00
committed by M. Shull
parent 232ef05e81
commit 7fba1be402
4 changed files with 17 additions and 12 deletions

View File

@ -8,6 +8,7 @@ use MailPoet\Settings\SettingsController;
use MailPoet\WP\Functions as WPFunctions;
class BeamerTest extends \MailPoetTest {
function testItSetsLastAnnouncementDate() {
$oldDate = '2019-05-18T10:25:00.000Z';
$newDate = '2019-05-22T10:25:00.000Z';
@ -21,6 +22,7 @@ class BeamerTest extends \MailPoetTest {
]);
$beamer = new Beamer($settings, $wp);
$beamer->setLastAnnouncementDate();
expect($settings->get('last_announcement_date'))->equals( Carbon::createFromTimeString($newDate)->getTimestamp());
expect($settings->get('last_announcement_date'))->equals(Carbon::createFromTimeString($newDate)->getTimestamp());
}
}