public function SingleVisibleProfileTest::testInstalled in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php \Drupal\FunctionalTests\Installer\SingleVisibleProfileTest::testInstalled()
- 9 core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php \Drupal\FunctionalTests\Installer\SingleVisibleProfileTest::testInstalled()
Confirms that the installation succeeded.
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ SingleVisibleProfileTest.php, line 58
Class
- SingleVisibleProfileTest
- Tests distribution profile support.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstalled() {
$this
->assertSession()
->addressEquals('user/1');
$this
->assertSession()
->statusCodeEquals(200);
// Confirm that we are logged-in after installation.
$this
->assertSession()
->pageTextContains($this->rootUser
->getAccountName());
// Confirm that the minimal profile was installed.
$this
->assertEquals('minimal', \Drupal::installProfile());
}