function 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 179

Class

TestSqlBase
Creates a base source class for SQL migration testing.

Namespace

Drupal\Tests\migrate\Unit

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.