Fix test
This commit is contained in:
parent
68655d0dcb
commit
901068f770
5 changed files with 126 additions and 93 deletions
11
tests/Util/AuthTestConfig.php
Normal file
11
tests/Util/AuthTestConfig.php
Normal 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;
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue