X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FSemaphoreLockDriverTest.php;h=a37fbffbed24c86a7076fd060216e50b751a84cd;hb=8660f6d86fc5d8f8f997b4b6a537b80d7ffbedff;hp=422ab3221f072bd07bd936c344aca522008530d8;hpb=0472c7b57d0bc6852e9b6eb6aeb8018c384d499f;p=friendica.git diff --git a/tests/src/Core/Lock/SemaphoreLockDriverTest.php b/tests/src/Core/Lock/SemaphoreLockDriverTest.php index 422ab3221f..a37fbffbed 100644 --- a/tests/src/Core/Lock/SemaphoreLockDriverTest.php +++ b/tests/src/Core/Lock/SemaphoreLockDriverTest.php @@ -4,12 +4,20 @@ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Lock\SemaphoreLockDriver; -/** - * @runTestsInSeparateProcesses - * @preserveGlobalState disabled - */ 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();