function HistoryTimestampTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php \Drupal\Tests\history\Kernel\Views\HistoryTimestampTest::setUp()
  2. 10 core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php \Drupal\Tests\history\Kernel\Views\HistoryTimestampTest::setUp()
  3. 8.9.x core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php \Drupal\Tests\history\Kernel\Views\HistoryTimestampTest::setUp()

File

core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php, line 37

Class

HistoryTimestampTest
Tests the history timestamp handlers.

Namespace

Drupal\Tests\history\Kernel\Views

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this->installEntitySchema('node');
  $this->installEntitySchema('user');
  $this->installSchema('history', [
    'history',
  ]);
  // Use history_test_theme because its marker is wrapped in a span so it can
  // be easily targeted with xpath.
  \Drupal::service('theme_installer')->install([
    'history_test_theme',
  ]);
  \Drupal::theme()->setActiveTheme(\Drupal::service('theme.initialization')->initTheme('history_test_theme'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.