You are here

protected function SettingsTrayBlockFormTest::getTestThemes in Drupal 9

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

Get themes to test.

Return value

string[] Theme names to test.

Overrides SettingsTrayTestBase::getTestThemes

3 calls to SettingsTrayBlockFormTest::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.

File

core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php, line 289

Class

SettingsTrayBlockFormTest
Testing opening and saving block forms in the off-canvas dialog.

Namespace

Drupal\Tests\settings_tray\FunctionalJavascript

Code

protected function getTestThemes() {

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