mirror of
https://github.com/friendica/friendica
synced 2025-02-25 23:18:14 +00:00
- 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
31 lines
548 B
PHP
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;
|
|
}
|
|
}
|