private function SiteStatusMessageSchedulerTestCase::setDefaultValidPost in Site Status Message 7
Set default post data.
1 call to SiteStatusMessageSchedulerTestCase::setDefaultValidPost()
- SiteStatusMessageSchedulerTestCase::setUp in modules/
site_status_message_scheduler/ tests/ site_status_message_scheduler.test - Sets up a Drupal site for running functional and integration tests.
File
- modules/
site_status_message_scheduler/ tests/ site_status_message_scheduler.test, line 152 - Tests for Site Status Message Scheduler module.
Class
- SiteStatusMessageSchedulerTestCase
- Class SiteStatusMessageSchedulerTestCase.
Code
private function setDefaultValidPost() {
$this->validFormPost['site_status_message_message'] = 'This is a test message.';
$this->validFormPost['site_status_message_showlink'] = FALSE;
$this->validFormPost['site_status_message_display_options'] = 'both';
$this->validFormPost['site_status_message_schedule'] = TRUE;
$this->validFormPost['site_status_message_use_end_date'] = FALSE;
$start = new DateTime('now -1 day');
$this->validFormPost['site_status_message_start_date[date]'] = $start
->format('Y-m-d');
$this->validFormPost['site_status_message_start_date[time]'] = $start
->format('H:i:s');
}