1
0
Fork 0
This commit is contained in:
Philipp Holzer 2021-11-30 20:53:47 +01:00
commit 901068f770
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
5 changed files with 126 additions and 93 deletions

View file

@ -0,0 +1,11 @@
<?php
namespace Friendica\Test\Util;
class AuthTestConfig
{
/** @var bool */
public static $authenticated = true;
/** @var int */
public static $user_id = 42;
}

View file

@ -16,6 +16,6 @@ function authtest_install()
function authtest_authenticate($a,&$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);
}