You are here

public function TestSqlBase::getDatabase in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/migrate/src/Tests/SqlBaseTest.php \Drupal\migrate\Plugin\migrate\source\TestSqlBase::getDatabase()
  2. 8 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()
Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()

Get 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 125
Contains \Drupal\Tests\migrate\Unit\SqlBaseTest.

Class

TestSqlBase

Namespace

Drupal\Tests\migrate\Unit

Code

public function getDatabase() {
  return $this->database;
}