You are here

public function TestDrupal6SqlBase::setDatabase in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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: 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 177
Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest.

Class

TestDrupal6SqlBase
Extends the Drupal6SqlBase abstract class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

public function setDatabase(Connection $database) {
  $this->database = $database;
}