function SettingsTrayTestBase::getTestThemes

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php \Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTrayTestBase::getTestThemes()

Overrides OffCanvasTestBase::getTestThemes

4 calls to SettingsTrayTestBase::getTestThemes()
SettingsTrayBlockFormTest::getBlockTests in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Creates tests for ::testBlocks().
SettingsTrayBlockFormTest::testEditModeEnableDisable in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Tests enabling and disabling Edit Mode.
SettingsTrayBlockFormTest::testValidationMessages in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Tests that validation errors appear in the off-canvas dialog.
SettingsTrayIntegrationTest::getTestThemes in core/modules/quickedit/tests/src/FunctionalJavascript/SettingsTrayIntegrationTest.php
Get themes to test.
1 method overrides SettingsTrayTestBase::getTestThemes()
SettingsTrayIntegrationTest::getTestThemes in core/modules/quickedit/tests/src/FunctionalJavascript/SettingsTrayIntegrationTest.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 'claro' theme. Settings Tray "Edit Mode" will not work with this
    // theme because it removes all contextual links.
    return array_filter(parent::getTestThemes(), function ($theme) {
        return $theme !== 'claro';
    });
}

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