function TestDrupal6SqlBase::setDatabase
Same name in other branches
- 9 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::setDatabase()
- 8.9.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::setDatabase()
- 11.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::setDatabase()
Tweaks Drupal6SqlBase to set a new database connection for tests.
Parameters
\Drupal\Core\Database\Connection $database: The new connection to use.
See also
\Drupal\Tests\migrate\Unit\MigrateSqlTestCase
File
-
core/
modules/ migrate_drupal/ tests/ src/ Unit/ source/ d6/ Drupal6SqlBaseTest.php, line 179
Class
- TestDrupal6SqlBase
- Extends the Drupal6SqlBase abstract class.
Namespace
Drupal\Tests\migrate_drupal\Unit\source\d6Code
public function setDatabase(Connection $database) {
$this->database = $database;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.