You are here

protected function TransitionManagerTest::setUp in Lightning Workflow 8.2

Overrides KernelTestBase::setUp

File

modules/lightning_scheduler/tests/src/Kernel/TransitionManagerTest.php, line 33

Class

TransitionManagerTest
@coversDefaultClass \Drupal\lightning_scheduler\TransitionManager

Namespace

Drupal\Tests\lightning_scheduler\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig('system');

  // In order to prove that time zones are normalized correctly, set the
  // system default and Drupal default time zones differently.
  date_default_timezone_set('UTC');
  $this
    ->config('system.date')
    ->set('timezone.default', 'America/New_York')
    ->save();
}