You are here

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

Loads the "Create" entity form.

3 calls to RabbitHoleBehaviorSettingsFormTestBase::loadCreateEntityForm()
RabbitHoleBehaviorSettingsFormTestBase::testAllowOverrideValue in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test Rabbit Hole settings with allowed/disallowed overrides.
RabbitHoleBehaviorSettingsFormTestBase::testDefaultEntitySettingsLoad in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that when entity form is loaded it defaults the bundle configuration.
RabbitHoleBehaviorSettingsFormTestBase::testEntityFormSaveRedirect in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test redirect after entity form save.

File

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

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function loadCreateEntityForm() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getCreateEntityUrl());
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}