You are here

public function StaticRedirectTest::setUp in Tome 8

Overrides TestBase::setUp

File

modules/tome_static/tests/src/Kernel/StaticRedirectTest.php, line 31

Class

StaticRedirectTest
Tests that static redirect generation works.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('redirect');

  // @see \Drupal\redirect\RedirectChecker::canRedirect
  \Drupal::requestStack()
    ->getCurrentRequest()->server
    ->set('SCRIPT_NAME', 'index.php');
}