Refactoring Core class structures ...
This commit is contained in:
parent
57b4c008cb
commit
b216317477
130 changed files with 1625 additions and 1397 deletions
|
@ -22,9 +22,9 @@
|
|||
namespace Friendica\Test\src\App;
|
||||
|
||||
use Friendica\App\Router;
|
||||
use Friendica\Core\Cache\ICache;
|
||||
use Friendica\Core\Cache\Capability\ICanCache;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Lock\ILock;
|
||||
use Friendica\Core\Lock\Capability\ICanLock;
|
||||
use Friendica\Module;
|
||||
use Friendica\Network\HTTPException\MethodNotAllowedException;
|
||||
use Friendica\Network\HTTPException\NotFoundException;
|
||||
|
@ -37,11 +37,11 @@ class RouterTest extends TestCase
|
|||
/** @var L10n|MockInterface */
|
||||
private $l10n;
|
||||
/**
|
||||
* @var ICache
|
||||
* @var ICanCache
|
||||
*/
|
||||
private $cache;
|
||||
/**
|
||||
* @var ILock
|
||||
* @var \Friendica\Core\Lock\Capability\ICanLock
|
||||
*/
|
||||
private $lock;
|
||||
|
||||
|
@ -52,11 +52,11 @@ class RouterTest extends TestCase
|
|||
$this->l10n = Mockery::mock(L10n::class);
|
||||
$this->l10n->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
|
||||
|
||||
$this->cache = Mockery::mock(ICache::class);
|
||||
$this->cache = Mockery::mock(ICanCache::class);
|
||||
$this->cache->shouldReceive('get')->andReturn(null);
|
||||
$this->cache->shouldReceive('set')->andReturn(false);
|
||||
|
||||
$this->lock = Mockery::mock(ILock::class);
|
||||
$this->lock = Mockery::mock(ICanLock::class);
|
||||
$this->lock->shouldReceive('acquire')->andReturn(true);
|
||||
$this->lock->shouldReceive('isLocked')->andReturn(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue