]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/SemaphoreLockDriverTest.php
Rename BlockedServers to ServerBlock
[friendica.git] / tests / src / Core / Lock / SemaphoreLockDriverTest.php
index 39f0763fb13c0b015c5c1a85677a42431879fa1e..a37fbffbed24c86a7076fd060216e50b751a84cd 100644 (file)
@@ -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();