]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Lock/SemaphoreLockDriverTest.php
Merge pull request #6582 from MrPetovan/bug/6570-fix-diaspora-hashtags
[friendica.git] / tests / src / Core / Lock / SemaphoreLockDriverTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Lock;
4
5 use Friendica\Core\Lock\SemaphoreLockDriver;
6
7 /**
8  * @runTestsInSeparateProcesses
9  * @preserveGlobalState disabled
10  */
11 class SemaphoreLockDriverTest extends LockTest
12 {
13         public function setUp()
14         {
15                 parent::setUp();
16
17                 $this->app->shouldReceive('getHostname')->andReturn('friendica.local');
18                 $this->mockConfigGet('system', 'temppath', '/tmp/');
19         }
20
21         protected function getInstance()
22         {
23                 return new SemaphoreLockDriver();
24         }
25
26         function testLockTTL()
27         {
28                 // Semaphore doesn't work with TTL
29                 return true;
30         }
31 }