function KernelTestBaseTest::testSetUp

Same name in this branch
  1. main core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testSetUp()
Same name and namespace in other branches
  1. 8.9.x core/modules/simpletest/src/Tests/KernelTestBaseTest.php \Drupal\simpletest\Tests\KernelTestBaseTest::testSetUp()
  2. 11.x core/modules/pgsql/tests/src/Kernel/pgsql/KernelTestBaseTest.php \Drupal\Tests\pgsql\Kernel\pgsql\KernelTestBaseTest::testSetUp()
  3. 11.x core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testSetUp()
  4. 10 core/modules/pgsql/tests/src/Kernel/pgsql/KernelTestBaseTest.php \Drupal\Tests\pgsql\Kernel\pgsql\KernelTestBaseTest::testSetUp()
  5. 10 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testSetUp()
  6. 9 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testSetUp()
  7. 8.9.x core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testSetUp()

Tests set up.

File

core/modules/pgsql/tests/src/Kernel/pgsql/KernelTestBaseTest.php, line 25

Class

KernelTestBaseTest
Tests Drupal\KernelTests\KernelTestBase.

Namespace

Drupal\Tests\pgsql\Kernel\pgsql

Code

public function testSetUp() : void {
  // Ensure that the database tasks have been run during set up.
  $this->assertSame('on', $this->connection
    ->query("SHOW standard_conforming_strings")
    ->fetchField());
  $this->assertSame('escape', $this->connection
    ->query("SHOW bytea_output")
    ->fetchField());
}

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