KernelTestBaseTest.php

Same filename in this branch
  1. 10 core/tests/Drupal/KernelTests/KernelTestBaseTest.php
Same filename in other branches
  1. 9 core/tests/Drupal/KernelTests/KernelTestBaseTest.php
  2. 8.9.x core/modules/simpletest/src/Tests/KernelTestBaseTest.php
  3. 8.9.x core/tests/Drupal/KernelTests/KernelTestBaseTest.php
  4. 8.9.x core/tests/Drupal/Tests/Core/Test/KernelTestBaseTest.php
  5. 11.x core/modules/pgsql/tests/src/Kernel/pgsql/KernelTestBaseTest.php
  6. 11.x core/tests/Drupal/KernelTests/KernelTestBaseTest.php

Namespace

Drupal\Tests\pgsql\Kernel\pgsql

File

core/modules/pgsql/tests/src/Kernel/pgsql/KernelTestBaseTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\pgsql\Kernel\pgsql;

use Drupal\KernelTests\Core\Database\DriverSpecificKernelTestBase;

/**
 * @coversDefaultClass \Drupal\KernelTests\KernelTestBase
 *
 * @group KernelTests
 * @group Database
 */
class KernelTestBaseTest extends DriverSpecificKernelTestBase {
    
    /**
     * @covers ::setUp
     */
    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());
    }

}

Classes

Title Deprecated Summary
KernelTestBaseTest @coversDefaultClass \Drupal\KernelTests\KernelTestBase

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