function TemporaryQueryTestBase::getConnection

Same name in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Database/TemporaryQueryTestBase.php \Drupal\KernelTests\Core\Database\TemporaryQueryTestBase::getConnection()

Returns the connection.

4 calls to TemporaryQueryTestBase::getConnection()
TemporaryQueryTest::testTemporaryQuery in core/modules/sqlite/tests/src/Kernel/sqlite/TemporaryQueryTest.php
Confirms that temporary tables work.
TemporaryQueryTest::testTemporaryQuery in core/modules/mysql/tests/src/Kernel/mysql/TemporaryQueryTest.php
Confirms that temporary tables work.
TemporaryQueryTest::testTemporaryQuery in core/modules/pgsql/tests/src/Kernel/pgsql/TemporaryQueryTest.php
Confirms that temporary tables work.
TemporaryQueryTestBase::testTemporaryQuery in core/tests/Drupal/KernelTests/Core/Database/TemporaryQueryTestBase.php
Confirms that temporary tables work.

File

core/tests/Drupal/KernelTests/Core/Database/TemporaryQueryTestBase.php, line 19

Class

TemporaryQueryTestBase
Tests the temporary query functionality.

Namespace

Drupal\KernelTests\Core\Database

Code

public function getConnection() {
    return Database::getConnection();
}

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