You are here

protected function RabbitHolePageRedirectActionTest::setUp in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/RabbitHolePageRedirectActionTest.php \Drupal\Tests\rabbit_hole\Functional\RabbitHolePageRedirectActionTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/RabbitHolePageRedirectActionTest.php, line 46

Class

RabbitHolePageRedirectActionTest
Test the "Page redirect" action.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->behaviorSettingsManager = $this->container
    ->get('rabbit_hole.behavior_settings_manager');
  $this->behaviorSettingsManager
    ->saveBehaviorSettings([
    'action' => 'display_page',
    'allow_override' => TRUE,
  ], 'node_type', 'article');
}