SimplenewsSchedulerWebTestBase.php in Simplenews Scheduler 8
Simplenews scheduler test functions.
Namespace
Drupal\simplenews_scheduler\TestsFile
src/Tests/SimplenewsSchedulerWebTestBase.phpView source
<?php
/**
* @file
* Simplenews scheduler test functions.
*
* @ingroup simplenews_scheduler
*/
namespace Drupal\simplenews_scheduler\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Class SimplenewsSchedulerWebTestBase
*/
abstract class SimplenewsSchedulerWebTestBase extends WebTestBase {
public static $modules = array(
'simplenews_scheduler',
);
/**
* The Simplenews scheduler settings config object.
*
* @var \Drupal\Core\Config\Config
*/
protected $config;
/**
* Overrides DrupalWebTestCase::setUp().
*/
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());
}
}
Classes
Name | Description |
---|---|
SimplenewsSchedulerWebTestBase | Class SimplenewsSchedulerWebTestBase |