public function ThunderInstallerTest::testInstalled in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/Installer/ThunderInstallerTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerTest::testInstalled()
- 8.2 tests/src/Functional/Installer/ThunderInstallerTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerTest::testInstalled()
- 8.3 tests/src/Functional/Installer/ThunderInstallerTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerTest::testInstalled()
- 8.4 tests/src/Functional/Installer/ThunderInstallerTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerTest::testInstalled()
- 6.2.x tests/src/Functional/Installer/ThunderInstallerTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerTest::testInstalled()
- 6.0.x tests/src/Functional/Installer/ThunderInstallerTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerTest::testInstalled()
Confirms that the installation succeeded.
File
- tests/
src/ Functional/ Installer/ ThunderInstallerTest.php, line 204
Class
- ThunderInstallerTest
- Tests the interactive installer installing the standard profile.
Namespace
Drupal\Tests\thunder\Functional\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());
$message = strip_tags(new TranslatableMarkup('Congratulations, you installed @drupal!', [
'@drupal' => 'Thunder',
], [
'langcode' => $this->langcode,
]));
$this
->assertSession()
->pageTextContains($message);
/** @var \Drupal\Core\Database\Query\SelectInterface $query */
$query = \Drupal::database()
->select('watchdog', 'w')
->condition('severity', 4, '<');
// Check that there are no warnings in the log after installation.
$this
->assertEquals($this->knownWarnings, $query
->countQuery()
->execute()
->fetchField());
}