function DistributionProfileTest::setUpSite

Same name and namespace in other branches
  1. main core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTest::setUpSite()

Final installer step: Configure site.

Overrides InstallerTestBase::setUpSite

File

core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php, line 81

Class

DistributionProfileTest
Tests distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpSite() : void {
  // This is the last installer step. The profile has installed its own themes
  // by now, and the install theme still renders this page, so the install
  // theme and its base theme must both keep their hook implementations.
  $this->assertSession()
    ->pageTextContains('Added by custom installer theme on the last step.');
  $this->assertSession()
    ->responseContains("default_admin/css/theme/install-page.css");
  parent::setUpSite();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.