Loading core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -40,10 +40,10 @@ protected function setUp($import_test_views = TRUE): void { $this->installEntitySchema('node'); $this->installEntitySchema('user'); $this->installSchema('history', ['history']); // Use classy theme because its marker is wrapped in a span so it can be // easily targeted with xpath. \Drupal::service('theme_installer')->install(['classy']); \Drupal::theme()->setActiveTheme(\Drupal::service('theme.initialization')->initTheme('classy')); // 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')); } /** Loading core/modules/history/tests/themes/history_test_theme/history_test_theme.info.yml 0 → 100644 +5 −0 Original line number Diff line number Diff line name: 'History Test Theme' type: theme description: 'Theme for history tests.' version: VERSION base theme: stark core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig 0 → 100644 +20 −0 Original line number Diff line number Diff line {# /** * @file * Theme override for a marker for new or updated content. * * Available variables: * - status: Number representing the marker status to display. Use the constants * below for comparison: * - MARK_NEW * - MARK_UPDATED * - MARK_READ */ #} {% if logged_in %} {% if status is constant('MARK_NEW') %} <span class="marker">{{ 'New'|t }}</span> {% elseif status is constant('MARK_UPDATED') %} <span class="marker">{{ 'Updated'|t }}</span> {% endif %} {% endif %} Loading
core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -40,10 +40,10 @@ protected function setUp($import_test_views = TRUE): void { $this->installEntitySchema('node'); $this->installEntitySchema('user'); $this->installSchema('history', ['history']); // Use classy theme because its marker is wrapped in a span so it can be // easily targeted with xpath. \Drupal::service('theme_installer')->install(['classy']); \Drupal::theme()->setActiveTheme(\Drupal::service('theme.initialization')->initTheme('classy')); // 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')); } /** Loading
core/modules/history/tests/themes/history_test_theme/history_test_theme.info.yml 0 → 100644 +5 −0 Original line number Diff line number Diff line name: 'History Test Theme' type: theme description: 'Theme for history tests.' version: VERSION base theme: stark
core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig 0 → 100644 +20 −0 Original line number Diff line number Diff line {# /** * @file * Theme override for a marker for new or updated content. * * Available variables: * - status: Number representing the marker status to display. Use the constants * below for comparison: * - MARK_NEW * - MARK_UPDATED * - MARK_READ */ #} {% if logged_in %} {% if status is constant('MARK_NEW') %} <span class="marker">{{ 'New'|t }}</span> {% elseif status is constant('MARK_UPDATED') %} <span class="marker">{{ 'Updated'|t }}</span> {% endif %} {% endif %}