You are here

public function UpdatePathTestBase::installDrupal in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::installDrupal()
  2. 10 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::installDrupal()

Installs Drupal into the Simpletest site.

Overrides BrowserTestBase::installDrupal

1 call to UpdatePathTestBase::installDrupal()
UpdatePathTestBase::setUp in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
Overrides WebTestBase::setUp() for update testing.

File

core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php, line 209

Class

UpdatePathTestBase
Provides a base class for writing an update test.

Namespace

Drupal\FunctionalTests\Update

Code

public function installDrupal() {
  $this
    ->initUserSession();
  $this
    ->prepareSettings();
  $this
    ->doInstall();
  $this
    ->initSettings();
  $request = Request::createFromGlobals();
  $container = $this
    ->initKernel($request);
  $this
    ->initConfig($container);
}