public function RabbitHoleBehaviorSettingsFormTestBase::testExistingEntitySettingsLoad in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsFormTestBase::testExistingEntitySettingsLoad()
Test that entity form correctly loads previously saved behavior settings.
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsFormTestBase.php, line 250
Class
- RabbitHoleBehaviorSettingsFormTestBase
- Base class for the Rabbit Hole form additions tests.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
public function testExistingEntitySettingsLoad() {
$this
->createEntityBundle();
$action = 'access_denied';
$entity_id = $this
->createEntity($action);
$this
->loadEditEntityForm($entity_id);
$this
->assertSession()
->checkboxChecked($this
->getOptionId($action));
}