]> git.mxchange.org Git - friendica.git/commitdiff
Update tests after removing App dependency from hook calls
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 14 Jan 2023 14:46:49 +0000 (09:46 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 14 Jan 2023 15:38:38 +0000 (10:38 -0500)
tests/Util/SampleStorageBackendInstance.php
tests/Util/authtest/authtest.php

index 196ef4c6199a75429b9196bbe9efcc5a28503ca0..c1c2869e3eaac4e35777c649076765062d929702 100644 (file)
@@ -25,7 +25,7 @@ use Friendica\Core\L10n;
 use Friendica\Test\Util\SampleStorageBackend;
 use Mockery\MockInterface;
 
-function create_instance(App $a, &$data)
+function create_instance(&$data)
 {
        /** @var L10n|MockInterface $l10n */
        $l10n = \Mockery::mock(L10n::class);
index 7252b6653e5f71026d11194c466ad79e50b8b51d..ca46d53e4bd3f63ec80d0e3c0ede7dcda23eb012 100644 (file)
@@ -14,7 +14,7 @@ function authtest_install()
        Hook::register('authenticate', 'tests/Util/authtest/authtest.php', 'authtest_authenticate');
 }
 
-function authtest_authenticate($a,&$b)
+function authtest_authenticate(&$b)
 {
        $b['authenticated'] = \Friendica\Test\Util\AuthTestConfig::$authenticated;
        $b['user_record']   = User::getById(\Friendica\Test\Util\AuthTestConfig::$user_id);