You are here

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

Test that bundle form contains Rabbit Hole settings and required fields.

File

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

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

public function testDefaultBundleForm() {
  $bundle_id = $this
    ->createEntityBundle();
  $this
    ->loadEntityBundleForm($bundle_id);
  $this
    ->assertRabbitHoleSettings();
  $this
    ->assertSession()
    ->fieldValueEquals('rh_override', BehaviorSettings::OVERRIDE_ALLOW);
  $this
    ->assertSession()
    ->checkboxChecked($this
    ->getOptionId(static::DEFAULT_BUNDLE_ACTION));
}