function LockTest::setUp

Same name in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/Core/Lock/LockTest.php \Drupal\KernelTests\Core\Lock\LockTest::setUp()
  2. 10 core/tests/Drupal/KernelTests/Core/Lock/LockTest.php \Drupal\KernelTests\Core\Lock\LockTest::setUp()
  3. 11.x core/tests/Drupal/KernelTests/Core/Lock/LockTest.php \Drupal\KernelTests\Core\Lock\LockTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Lock/LockTest.php, line 25

Class

LockTest
Tests the Database lock backend.

Namespace

Drupal\KernelTests\Core\Lock

Code

protected function setUp() : void {
    parent::setUp();
    $this->lock = new DatabaseLockBackend($this->container
        ->get('database'));
}

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