You are here

public function TestSqlBase::getDatabase in Drupal 10

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

Gets the database without caching it.

Overrides SqlBase::getDatabase

File

core/modules/migrate/tests/src/Kernel/SqlBaseTest.php, line 210
Contains \Drupal\Tests\migrate\Kernel\SqlBaseTest.

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();
}