X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FSemaphoreLockDriverTest.php;h=a37fbffbed24c86a7076fd060216e50b751a84cd;hb=f4ec7c47b921209b5ff7906bee8aba9db326d0cb;hp=39f0763fb13c0b015c5c1a85677a42431879fa1e;hpb=a6996601d5260e4dde621f4d04b35adbbc3c10e0;p=friendica.git diff --git a/tests/src/Core/Lock/SemaphoreLockDriverTest.php b/tests/src/Core/Lock/SemaphoreLockDriverTest.php index 39f0763fb1..a37fbffbed 100644 --- a/tests/src/Core/Lock/SemaphoreLockDriverTest.php +++ b/tests/src/Core/Lock/SemaphoreLockDriverTest.php @@ -6,6 +6,18 @@ 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();