You are here

public function TestSqlBase::getDatabase in Drupal 8

Same name in this branch
  1. 8 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()
  2. 8 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::getDatabase()
Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::getDatabase()
  2. 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\Unit

Code

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