protected function RabbitHoleBehaviorSettingsFormTestBase::assertRabbitHoleSettings in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsFormTestBase::assertRabbitHoleSettings()
Combines multiple asserts to check the "Rabbit Hole" settings fieldset.
8 calls to RabbitHoleBehaviorSettingsFormTestBase::assertRabbitHoleSettings()
- GroupBehaviorSettingsFormTest::createEntityBundleFormSubmit in modules/
rh_group/ tests/ src/ Functional/ GroupBehaviorSettingsFormTest.php - Creates new entity bundle via form submit.
- MediaBehaviorSettingsFormTest::createEntityBundleFormSubmit in modules/
rh_media/ tests/ src/ Functional/ MediaBehaviorSettingsFormTest.php - Creates new entity bundle via form submit.
- NodeBehaviorSettingsFormTest::createEntityBundleFormSubmit in modules/
rh_node/ tests/ src/ Functional/ NodeBehaviorSettingsFormTest.php - Creates new entity bundle via form submit.
- RabbitHoleBehaviorSettingsFormTestBase::testAllowOverrideValue in tests/
src/ Functional/ RabbitHoleBehaviorSettingsFormTestBase.php - Test Rabbit Hole settings with allowed/disallowed overrides.
- RabbitHoleBehaviorSettingsFormTestBase::testDefaultBundleForm in tests/
src/ Functional/ RabbitHoleBehaviorSettingsFormTestBase.php - Test that bundle form contains Rabbit Hole settings and required fields.
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsFormTestBase.php, line 279
Class
- RabbitHoleBehaviorSettingsFormTestBase
- Base class for the Rabbit Hole form additions tests.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
protected function assertRabbitHoleSettings() {
$this
->assertSession()
->fieldExists('rh_action');
$this
->assertSession()
->fieldExists('edit-rh-action-access-denied');
$this
->assertSession()
->fieldExists('edit-rh-action-display-page');
$this
->assertSession()
->fieldExists('edit-rh-action-page-not-found');
$this
->assertSession()
->fieldExists('edit-rh-action-page-redirect');
}