protected function RabbitHoleBehaviorSettingsFormTestBase::setUp in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsFormTestBase::setUp()
Overrides BrowserTestBase::setUp
1 call to RabbitHoleBehaviorSettingsFormTestBase::setUp()
- ProductBehaviorSettingsFormTest::setUp in modules/
rh_commerce/ tests/ src/ Functional/ ProductBehaviorSettingsFormTest.php
1 method overrides RabbitHoleBehaviorSettingsFormTestBase::setUp()
- ProductBehaviorSettingsFormTest::setUp in modules/
rh_commerce/ tests/ src/ Functional/ ProductBehaviorSettingsFormTest.php
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsFormTestBase.php, line 51
Class
- RabbitHoleBehaviorSettingsFormTestBase
- Base class for the Rabbit Hole form additions tests.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
protected function setUp() {
parent::setUp();
$this->behaviorSettingsManager = $this->container
->get('rabbit_hole.behavior_settings_manager');
$admin_permissions = array_merge($this
->getAdminPermissions(), [
'rabbit hole administer ' . $this->entityType,
]);
$this->adminUser = $this
->drupalCreateUser($admin_permissions);
}