]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/authtest/authtest.php
Merge pull request #12674 from nupplaphil/bug/config_typesafe
[friendica.git] / tests / Util / authtest / authtest.php
index cec0c066ed9938e349f07f13482663b60e42c7ea..ca46d53e4bd3f63ec80d0e3c0ede7dcda23eb012 100644 (file)
@@ -14,8 +14,8 @@ function authtest_install()
        Hook::register('authenticate', 'tests/Util/authtest/authtest.php', 'authtest_authenticate');
 }
 
-function authtest_authenticate($a,&$b)
+function authtest_authenticate(&$b)
 {
-       $b['authenticated'] = 1;
-       $b['user_record']   = User::getById(42);
+       $b['authenticated'] = \Friendica\Test\Util\AuthTestConfig::$authenticated;
+       $b['user_record']   = User::getById(\Friendica\Test\Util\AuthTestConfig::$user_id);
 }