You are here

public function RabbitHoleBehaviorSettingsFormTestBase::testDefaultEntitySettingsLoad 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::testDefaultEntitySettingsLoad()

Test that when entity form is loaded it defaults the bundle configuration.

File

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

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

public function testDefaultEntitySettingsLoad() {
  $this
    ->createEntityBundle();
  $this
    ->loadCreateEntityForm();
  $this
    ->assertRabbitHoleSettings();
  $this
    ->assertSession()
    ->checkboxChecked($this
    ->getOptionId(static::DEFAULT_ACTION));
}