You are here

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

Loads the "Edit" entity form.

3 calls to RabbitHoleBehaviorSettingsFormTestBase::loadEditEntityForm()
RabbitHoleBehaviorSettingsFormTestBase::testExistingEntityNoConfigSave in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test saving settings for entity that did not previously have them.
RabbitHoleBehaviorSettingsFormTestBase::testExistingEntitySave in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that existing entity is edited on saving the entity form.
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 319

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function loadEditEntityForm($entity_id) {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getEditEntityUrl($entity_id));
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}