public function TestSqlBase::getDatabase in Drupal 8
Same name in this branch
- 8 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()
- 8 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::getDatabase()
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()
- 10 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()
Gets the database connection object.
Return value
\Drupal\Core\Database\Connection The database connection.
Overrides SqlBase::getDatabase
File
- core/
modules/ migrate/ tests/ src/ Unit/ SqlBaseTest.php, line 182 - Contains \Drupal\Tests\migrate\Unit\SqlBaseTest.
Class
- TestSqlBase
- Creates a base source class for SQL migration testing.
Namespace
Drupal\Tests\migrate\UnitCode
public function getDatabase() {
return $this->database;
}