From: Michael Date: Sun, 25 Jul 2021 04:42:34 +0000 (+0000) Subject: Tests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b5eb055c8b97c2c1b4393186b65bfd7b22554ae;p=friendica.git Tests --- diff --git a/tests/src/App/ModuleTest.php b/tests/src/App/ModuleTest.php index 42d6fb1ef5..9b9bdd0cc3 100644 --- a/tests/src/App/ModuleTest.php +++ b/tests/src/App/ModuleTest.php @@ -25,6 +25,7 @@ use Friendica\App; use Friendica\Core\Cache\ICache; use Friendica\Core\Config\IConfig; use Friendica\Core\L10n; +use Friendica\Core\Lock\ILock; use Friendica\LegacyModule; use Friendica\Module\HTTPException\PageNotFound; use Friendica\Module\WellKnown\HostMeta; @@ -182,7 +183,9 @@ class ModuleTest extends DatabaseTest $cache->shouldReceive('get')->with('lastRoutesFileModifiedTime')->andReturn('')->atMost()->once(); $cache->shouldReceive('set')->withAnyArgs()->andReturn(false)->atMost()->twice(); - $router = (new App\Router([], __DIR__ . '/../../../static/routes.config.php', $l10n, $cache)); + $lock = Mockery::mock(ILock::class); + + $router = (new App\Router([], __DIR__ . '/../../../static/routes.config.php', $l10n, $cache, $lock)); $module = (new App\Module($name))->determineClass(new App\Arguments('', $command), $router, $config);