mirror of
https://github.com/friendica/friendica
synced 2024-12-22 20:00:16 +00:00
Update tests after removing App dependency from hook calls
This commit is contained in:
parent
e73adde5fb
commit
45a6888647
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue