function SimpleNewsSchedulerWebTestCase::setUp in Simplenews Scheduler 7
Same name and namespace in other branches
- 6.2 tests/simplenews_scheduler.test \SimpleNewsSchedulerWebTestCase::setUp()
Overrides DrupalWebTestCase::setUp().
Parameters
$modules: Additional modules to enable for the test. simplenews_scheduler and the dependencies are always enabled.
Overrides DrupalWebTestCase::setUp
2 calls to SimpleNewsSchedulerWebTestCase::setUp()
- SimpleNewsSchedulerEditionDueTest::setUp in tests/simplenews_scheduler.test 
- Declares the module dependencies and create data for the test.
- SimpleNewsSchedulerNodeCreationTest::setUp in tests/simplenews_scheduler.test 
- Declares the module dependencies for the test.
2 methods override SimpleNewsSchedulerWebTestCase::setUp()
- SimpleNewsSchedulerEditionDueTest::setUp in tests/simplenews_scheduler.test 
- Declares the module dependencies and create data for the test.
- SimpleNewsSchedulerNodeCreationTest::setUp in tests/simplenews_scheduler.test 
- Declares the module dependencies for the test.
File
- tests/simplenews_scheduler.test, line 26 
- Tests for Simplenews Scheduler.
Class
- SimpleNewsSchedulerWebTestCase
- Class with common setup.
Code
function setUp($modules = array()) {
  // Add our dependencies to the module list.
  $modules = array_merge(array(
    'simplenews_scheduler',
  ), $modules);
  parent::setUp($modules);
  // Set the site timezone to something visibly different from UTC, which
  // has daylight saving changes.
  variable_set('date_default_timezone', 'Europe/Kiev');
  date_default_timezone_set(drupal_get_user_timezone());
}