mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
16 lines
465 B
PHP
16 lines
465 B
PHP
<?php
|
|
|
|
class ContentReviewNotificationTest extends SapphireTest {
|
|
|
|
public function testContentReviewEmails() {
|
|
SS_Datetime::set_mock_now('2010-02-14 12:00:00');
|
|
|
|
$task = new ContentReviewEmails();
|
|
$task->run(new SS_HTTPRequest('GET', '/dev/tasks/ContentReviewEmails'));
|
|
|
|
$this->assertEmailSent('author@example.com', null, sprintf(_t('ContentReviewEmails.SUBJECT', 'Page %s due for content review'), 'Staff'));
|
|
|
|
SS_Datetime::clear_mock_now();
|
|
}
|
|
}
|