You are here

protected function RabbitHoleBehaviorSettingsFormTestBase::assertNoRabbitHoleSettings in Rabbit Hole 2.x

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

Combines multiple asserts to check that "Rabbit Hole" settings are hidden.

3 calls to RabbitHoleBehaviorSettingsFormTestBase::assertNoRabbitHoleSettings()
RabbitHoleBehaviorSettingsFormTestBase::testAdministerPermission in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test the "rabbit hole administer *" permission.
RabbitHoleBehaviorSettingsFormTestBase::testAllowOverrideValue in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test Rabbit Hole settings with allowed/disallowed overrides.
RabbitHoleBehaviorSettingsFormTestBase::testEntityFormSaveRedirect in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test redirect after entity form save.

File

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

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function assertNoRabbitHoleSettings() {
  $this
    ->assertSession()
    ->fieldNotExists('rh_action');
  $this
    ->assertSession()
    ->fieldNotExists('edit-rh-action-access-denied');
  $this
    ->assertSession()
    ->fieldNotExists('edit-rh-action-display-page');
  $this
    ->assertSession()
    ->fieldNotExists('edit-rh-action-page-not-found');
  $this
    ->assertSession()
    ->fieldNotExists('edit-rh-action-page-redirect');
}