protected function SimplenewsSchedulerWebTestBase::setUp in Simplenews Scheduler 8
Overrides DrupalWebTestCase::setUp().
Overrides WebTestBase::setUp
2 calls to SimplenewsSchedulerWebTestBase::setUp()
- SimplenewsSchedulerEditionDueTest::setUp in src/
Tests/ SimplenewsSchedulerEditionDueTest.php - Overrides DrupalWebTestCase::setUp().
- SimplenewsSchedulerNodeCreationTest::setUp in src/
Tests/ SimplenewsSchedulerNodeCreationTest.php - Overrides DrupalWebTestCase::setUp().
2 methods override SimplenewsSchedulerWebTestBase::setUp()
- SimplenewsSchedulerEditionDueTest::setUp in src/
Tests/ SimplenewsSchedulerEditionDueTest.php - Overrides DrupalWebTestCase::setUp().
- SimplenewsSchedulerNodeCreationTest::setUp in src/
Tests/ SimplenewsSchedulerNodeCreationTest.php - Overrides DrupalWebTestCase::setUp().
File
- src/
Tests/ SimplenewsSchedulerWebTestBase.php, line 31 - Simplenews scheduler test functions.
Class
- SimplenewsSchedulerWebTestBase
- Class SimplenewsSchedulerWebTestBase
Namespace
Drupal\simplenews_scheduler\TestsCode
protected function setUp() {
parent::setUp();
// Set the site timezone to something visibly different from UTC, which
// has daylight saving changes.
$date_config = $this
->config('system.date');
$date_config
->set('timezone.default', 'Europe/Kiev');
$date_config
->save();
date_default_timezone_set(drupal_get_user_timezone());
}