You are here

public function SettingsTrayTestBase::getBlockSelector in Drupal 8

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

Gets the block CSS selector.

Parameters

\Drupal\block\Entity\Block $block: The block.

Return value

string The CSS selector.

8 calls to SettingsTrayTestBase::getBlockSelector()
ConfigAccessTest::testBlockConfigAccess in core/modules/settings_tray/tests/src/FunctionalJavascript/ConfigAccessTest.php
Tests access to block forms with related configuration is correct.
OverriddenConfigurationTest::assertOverriddenBlockDisabled in core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php
Asserts that an overridden block has Settings Tray disabled.
OverriddenConfigurationTest::testOverriddenBlock in core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php
Tests that blocks with configuration overrides are disabled.
OverriddenConfigurationTest::testOverriddenConfigurationRemoved in core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php
Test blocks with overridden related configuration removed when overridden.
QuickEditIntegrationTest::testQuickEditLinks in core/modules/settings_tray/tests/src/FunctionalJavascript/QuickEditIntegrationTest.php
Tests QuickEdit links behavior.

... See full list

File

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

Class

SettingsTrayTestBase
Base class for Settings Tray tests.

Namespace

Drupal\Tests\settings_tray\FunctionalJavascript

Code

public function getBlockSelector(Block $block) {
  return '#block-' . str_replace('_', '-', $block
    ->id());
}