function TestSqlBase::getDatabase

Gets the database without caching it.

Return value

\Drupal\Core\Database\Connection The database connection.

Overrides SqlBase::getDatabase

File

core/modules/migrate/tests/src/Kernel/SqlBaseTest.php, line 210

Class

TestSqlBase
A dummy source to help with testing SqlBase.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function getDatabase() {
  $this->database = NULL;
  return parent::getDatabase();
}

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