function ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest::testReplicaDrupal8StyleDatabaseConnectionInSettingsPhp
Same name in other branches
- 10 core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php \Drupal\FunctionalTests\ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest::testReplicaDrupal8StyleDatabaseConnectionInSettingsPhp()
- 11.x core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php \Drupal\FunctionalTests\ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest::testReplicaDrupal8StyleDatabaseConnectionInSettingsPhp()
Confirms that the replica database connection works.
File
-
core/
tests/ Drupal/ FunctionalTests/ ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php, line 76
Class
- ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest
- @group Database
Namespace
Drupal\FunctionalTestsCode
public function testReplicaDrupal8StyleDatabaseConnectionInSettingsPhp() {
$this->drupalLogin($this->drupalCreateUser());
$replica = Database::getConnection('replica', 'default');
$this->assertInstanceOf(Connection::class, $replica);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.