X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FSemaphoreLockDriverTest.php;h=a37fbffbed24c86a7076fd060216e50b751a84cd;hb=8660f6d86fc5d8f8f997b4b6a537b80d7ffbedff;hp=fb7efd6584ecdb9d9d330097fabbc308ba7ad3b9;hpb=19209f6826fc513b5e1bc3460c212a4b80c02049;p=friendica.git diff --git a/tests/src/Core/Lock/SemaphoreLockDriverTest.php b/tests/src/Core/Lock/SemaphoreLockDriverTest.php index fb7efd6584..a37fbffbed 100644 --- a/tests/src/Core/Lock/SemaphoreLockDriverTest.php +++ b/tests/src/Core/Lock/SemaphoreLockDriverTest.php @@ -2,13 +2,30 @@ namespace Friendica\Test\src\Core\Lock; - use Friendica\Core\Lock\SemaphoreLockDriver; class SemaphoreLockDriverTest extends LockTest { + public function setUp() + { + parent::setUp(); + + $this->app->shouldReceive('getHostname')->andReturn('friendica.local'); + + $this->configMock + ->shouldReceive('get') + ->with('system', 'temppath') + ->andReturn('/tmp/'); + } + protected function getInstance() { return new SemaphoreLockDriver(); } -} \ No newline at end of file + + function testLockTTL() + { + // Semaphore doesn't work with TTL + return true; + } +}