public function DistributionProfileTest::testInstalled in Drupal 8
Same name and namespace in other branches
- 9 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 73
Class
- DistributionProfileTest
- Tests distribution profile support.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstalled() {
$this
->assertUrl('myrootuser');
$this
->assertSession()
->statusCodeEquals(200);
// Confirm that we are logged-in after installation.
$this
->assertText($this->rootUser
->getAccountName());
// Confirm that Drupal recognizes this distribution as the current profile.
$this
->assertEqual(\Drupal::installProfile(), 'mydistro');
$this
->assertEqual($this
->config('core.extension')
->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.');
}