public function LockBackendAbstractTest::testWaitFalse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 32 - Contains \Drupal\Tests\Core\Lock\LockBackendAbstractTest.
Class
- LockBackendAbstractTest
- @coversDefaultClass \Drupal\Tests\Core\Lock\LockBackendAbstractTest @group Lock
Namespace
Drupal\Tests\Core\LockCode
public function testWaitFalse() {
$this->lock
->expects($this
->any())
->method('lockMayBeAvailable')
->with($this
->equalTo('test_name'))
->will($this
->returnValue(TRUE));
$this
->assertFalse($this->lock
->wait('test_name'));
}