friendica-github/tests/src/Core/Lock/SemaphoreLockDriverTest.php
Philipp Holzer eafcf3592d
Config FollowUp
- New Configuration (Config is now only holding the instance)
- New PConfiguration (PConfig is now only holding the instance)

- Config & PConfig-Adapter don't need "ConfigCache" anymore

- DB-Connection is now outside App->reload() for better dependency-chaining
2019-02-17 20:40:27 +01:00

31 lines
548 B
PHP

<?php
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->configCache
->shouldReceive('get')
->with('system', 'temppath', NULL, false)
->andReturn('/tmp/');
}
protected function getInstance()
{
return new SemaphoreLockDriver();
}
function testLockTTL()
{
// Semaphore doesn't work with TTL
return true;
}
}