function DistributionProfileTest::testInstalled
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTest::testInstalled()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTest::testInstalled()
- 10 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTest::testInstalled()
Confirms that the installation succeeded.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileTest.php, line 75
Class
- DistributionProfileTest
- Tests distribution profile support.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstalled() : void {
$this->assertSession()
->addressEquals('root-user');
$this->assertSession()
->statusCodeEquals(200);
// Confirm that we are logged-in after installation.
$this->assertSession()
->pageTextContains($this->rootUser
->getAccountName());
// Confirm that Drupal recognizes this distribution as the current profile.
$this->assertEquals('my_distribution', \Drupal::installProfile());
$this->assertEquals('my_distribution', $this->config('core.extension')
->get('profile'), 'The install profile has been written to core.extension configuration.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.