function LockBackendAbstractTest::testWaitFalse
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php \Drupal\Tests\Core\Lock\LockBackendAbstractTest::testWaitFalse()
- 8.9.x core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php \Drupal\Tests\Core\Lock\LockBackendAbstractTest::testWaitFalse()
- 10 core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php \Drupal\Tests\Core\Lock\LockBackendAbstractTest::testWaitFalse()
Tests the wait() method when lockMayBeAvailable() returns TRUE.
File
-
core/
tests/ Drupal/ Tests/ Core/ Lock/ LockBackendAbstractTest.php, line 34
Class
- LockBackendAbstractTest
- @coversDefaultClass <a href="/api/drupal/core%21tests%21Drupal%21Tests%21Core%21Lock%21LockBackendAbstractTest.php/class/LockBackendAbstractTest/11.x" title="@coversDefaultClass \Drupal\Tests\Core\Lock\LockBackendAbstractTest @group Lock" class="local">\Drupal\Tests\Core\Lock\LockBackendAbstractTest</a> @group Lock
Namespace
Drupal\Tests\Core\LockCode
public function testWaitFalse() : void {
$this->lock
->expects($this->any())
->method('lockMayBeAvailable')
->with($this->equalTo('test_name'))
->willReturn(TRUE);
$this->assertFalse($this->lock
->wait('test_name'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.