You are here

protected function RedirectOnExceptionTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/RequestProcessing/RedirectOnExceptionTest.php \Drupal\KernelTests\RequestProcessing\RedirectOnExceptionTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/RequestProcessing/RedirectOnExceptionTest.php, line 29
Contains \Drupal\KernelTests\RequestProcessing\RedirectOnExceptionTest.

Class

RedirectOnExceptionTest
Tests redirects on exception pages.

Namespace

Drupal\KernelTests\RequestProcessing

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', [
    'router',
    'url_alias',
  ]);
  \Drupal::service('router.builder')
    ->rebuild();
}