You are here

protected function RabbitHoleBehaviorSettingsFormTestBase::loadEntityBundleForm 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::loadEntityBundleForm()

Loads the bundle configuration form.

5 calls to RabbitHoleBehaviorSettingsFormTestBase::loadEntityBundleForm()
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::testBundleFormFirstSave in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test the first bundle form save with Rabbit Hole configuration.
RabbitHoleBehaviorSettingsFormTestBase::testBundleFormSave in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test new changes to bundle with existing rabbit hole settings changes key.
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 301

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function loadEntityBundleForm($bundle) {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getEditBundleUrl($bundle));
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}