You are here

protected function SettingsTrayTestBase::getTestThemes in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php \Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTrayTestBase::getTestThemes()
  2. 10 core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php \Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTrayTestBase::getTestThemes()

Get themes to test.

Return value

string[] Theme names to test.

Overrides OffCanvasTestBase::getTestThemes

2 calls to SettingsTrayTestBase::getTestThemes()
SettingsTrayBlockFormTest::getTestThemes in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Get themes to test.
SettingsTrayIntegrationTest::testQuickEditLinks in core/modules/quickedit/tests/src/FunctionalJavascript/SettingsTrayIntegrationTest.php
Tests QuickEdit links behavior.
1 method overrides SettingsTrayTestBase::getTestThemes()
SettingsTrayBlockFormTest::getTestThemes in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Get themes to test.

File

core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php, line 158

Class

SettingsTrayTestBase
Base class for Settings Tray tests.

Namespace

Drupal\Tests\settings_tray\FunctionalJavascript

Code

protected function getTestThemes() {

  // Remove 'seven' theme. Settings Tray "Edit Mode" will not work with
  // 'seven' because it removes all contextual links.
  return array_filter(parent::getTestThemes(), function ($theme) {
    return $theme !== 'seven';
  });
}