public function TestSqlBase::setDatabase in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::setDatabase()
- 10 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 175 - Contains \Drupal\Tests\migrate\Unit\SqlBaseTest.
Class
- TestSqlBase
- Creates a base source class for SQL migration testing.
Namespace
Drupal\Tests\migrate\UnitCode
public function setDatabase($database) {
$this->database = $database;
}