You are here

protected function ModerationDashboardRedirectTest::setUp in Moderation Dashboard 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/ModerationDashboardRedirectTest.php \Drupal\Tests\moderation_dashboard\Functional\ModerationDashboardRedirectTest::setUp()

Overrides ModerationDashboardTestBase::setUp

File

tests/src/Functional/ModerationDashboardRedirectTest.php, line 15

Class

ModerationDashboardRedirectTest
Tests redirection to dashboard on login.

Namespace

Drupal\Tests\moderation_dashboard\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->config('system.site')
    ->set('page.403', '/user/login')
    ->save();
  $this
    ->config('moderation_dashboard.settings')
    ->set('redirect_on_login', TRUE)
    ->save();
}