function LockBackendAbstractTest::testWaitFalse
Tests the wait() method when lockMayBeAvailable() returns TRUE.
File
-
core/
tests/ Drupal/ Tests/ Core/ Lock/ LockBackendAbstractTest.php, line 30
Class
- LockBackendAbstractTest
- @coversDefaultClass \Drupal\Tests\Core\Lock\LockBackendAbstractTest[[api-linebreak]] @group Lock
Namespace
Drupal\Tests\Core\LockCode
public function testWaitFalse() {
$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.