tests: add tests for lock expiration (#7777)

This commit is contained in:
Swikriti Tripathi
2023-11-22 15:37:29 +05:45
committed by GitHub
parent e3283f5c88
commit 96862f4eb1
2 changed files with 30 additions and 0 deletions
@@ -828,6 +828,17 @@ class WebDavLockingContext implements Context {
);
}
/**
* @When the user waits for :time seconds to expire the lock
*
* @param int $time
*
* @return void
*/
public function waitForCertainSecondsToExpireTheLock(int $time): void {
\sleep($time);
}
/**
* This will run before EVERY scenario.
* It will set the properties for this object.