function SchemaTest::setUp

Same name in this branch
  1. 9 core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php \Drupal\KernelTests\Core\Database\SchemaTest::setUp()
Same name in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php \Drupal\KernelTests\Core\Database\SchemaTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/pgsql/tests/src/Unit/SchemaTest.php, line 26

Class

SchemaTest
@coversDefaultClass \Drupal\pgsql\Driver\Database\pgsql\Schema @group Database

Namespace

Drupal\Tests\pgsql\Unit

Code

protected function setUp() : void {
    parent::setUp();
    $this->connection = $this->getMockBuilder('\\Drupal\\pgsql\\Driver\\Database\\pgsql\\Connection')
        ->disableOriginalConstructor()
        ->getMock();
}

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