You are here

SimplenewsSchedulerTestBase.php in Simplenews Scheduler 2.0.x

File

tests/src/Functional/SimplenewsSchedulerTestBase.php
View source
<?php

namespace Drupal\Tests\simplenews_scheduler\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Class SimplenewsSchedulerWebTestBase
 */
abstract class SimplenewsSchedulerTestBase extends BrowserTestBase {
  protected static $modules = [
    'simplenews_scheduler',
  ];

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * 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();
  }

}

Classes

Namesort descending Description
SimplenewsSchedulerTestBase Class SimplenewsSchedulerWebTestBase