You are here

protected function RabbitHoleBehaviorSettingsFormTestBase::getOptionId in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsFormTestBase::getOptionId()

Formats selector of the action input.

Parameters

string $action: Rabbit hole action.

Return value

string Selector for the given behavior option.

5 calls to RabbitHoleBehaviorSettingsFormTestBase::getOptionId()
RabbitHoleBehaviorSettingsFormTestBase::testBundleCreation in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that Rabbit Hole settings are created together with entity bundle.
RabbitHoleBehaviorSettingsFormTestBase::testBundleFormExistingBehavior in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that bundle form with a configured bundle behaviour loads config.
RabbitHoleBehaviorSettingsFormTestBase::testDefaultBundleForm in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that bundle form contains Rabbit Hole settings and required fields.
RabbitHoleBehaviorSettingsFormTestBase::testDefaultEntitySettingsLoad in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that when entity form is loaded it defaults the bundle configuration.
RabbitHoleBehaviorSettingsFormTestBase::testExistingEntitySettingsLoad in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that entity form correctly loads previously saved behavior settings.

File

tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php, line 366

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function getOptionId($action) {
  return 'edit-rh-action-' . str_replace('_', '-', $action);
}