]> git.mxchange.org Git - friendica.git/commitdiff
Tests
authorMichael <heluecht@pirati.ca>
Sun, 25 Jul 2021 04:42:34 +0000 (04:42 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 25 Jul 2021 04:42:34 +0000 (04:42 +0000)
tests/src/App/ModuleTest.php

index 42d6fb1ef5b1328b956ab1050e24fc6e9fc678bd..9b9bdd0cc3dcb816e53e9b30deb934651cd3beaa 100644 (file)
@@ -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);