function HistoryTimestampTest::setUp
Same name in other branches
- 8.9.x core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php \Drupal\Tests\history\Kernel\Views\HistoryTimestampTest::setUp()
- 10 core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php \Drupal\Tests\history\Kernel\Views\HistoryTimestampTest::setUp()
- 11.x core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php \Drupal\Tests\history\Kernel\Views\HistoryTimestampTest::setUp()
Overrides ViewsKernelTestBase::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\ViewsCode
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.