From 45a6888647820f2e46522c631764722350ae8138 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 14 Jan 2023 09:46:49 -0500 Subject: [PATCH] Update tests after removing App dependency from hook calls --- tests/Util/SampleStorageBackendInstance.php | 2 +- tests/Util/authtest/authtest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Util/SampleStorageBackendInstance.php b/tests/Util/SampleStorageBackendInstance.php index 196ef4c619..c1c2869e3e 100644 --- a/tests/Util/SampleStorageBackendInstance.php +++ b/tests/Util/SampleStorageBackendInstance.php @@ -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); diff --git a/tests/Util/authtest/authtest.php b/tests/Util/authtest/authtest.php index 7252b6653e..ca46d53e4b 100644 --- a/tests/Util/authtest/authtest.php +++ b/tests/Util/authtest/authtest.php @@ -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); -- 2.39.5