protected function LockUnitTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Lock/LockUnitTest.php \Drupal\system\Tests\Lock\LockUnitTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Lock/ LockUnitTest.php, line 34 - Contains \Drupal\system\Tests\Lock\LockUnitTest.
Class
- LockUnitTest
- Tests the Database lock backend.
Namespace
Drupal\system\Tests\LockCode
protected function setUp() {
parent::setUp();
$this->lock = new DatabaseLockBackend($this->container
->get('database'));
$this
->installSchema('system', 'semaphore');
}