silverstripe-contentreview/tests/ContentReviewNotificationTest.php

17 lines
496 B
PHP
Raw Normal View History

2014-02-24 01:38:16 +01:00
<?php
class ContentReviewNotificationTest extends SapphireTest {
public function testContentReviewEmails() {
$this->markTestIncomplete();
2014-02-24 01:38:16 +01:00
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();
}
}