You are here

public function TestSqlBase::setDatabase in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::setDatabase()

Allows us to set the database during tests.

Parameters

mixed $database: The database mock object.

File

core/modules/migrate/tests/src/Unit/SqlBaseTest.php, line 118
Contains \Drupal\Tests\migrate\Unit\SqlBaseTest.

Class

TestSqlBase

Namespace

Drupal\Tests\migrate\Unit

Code

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