protected $lock;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->lock =
new DatabaseLockBackend($this->container->
get('database'
));
} /**
* Tests backend release functionality.
*/
public function testBackendLockRelease() { $success =
$this->lock->
acquire('lock_a'
);
$this->
assertTrue($success, 'Could acquire first lock.'
);
// This function is not part of the backend, but the default database
// backend implement it, we can here use it safely.