mirror of
https://github.com/friendica/friendica
synced 2024-11-09 17:02:54 +00:00
Testing tests
This commit is contained in:
parent
420f6c652f
commit
3c0f22b2dd
2 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,7 @@ class BasicAuth
|
|||
return (int)self::$current_user_id;
|
||||
}
|
||||
|
||||
public static function setCurrentUserID(int $uid)
|
||||
public static function setCurrentUserID(int $uid = null)
|
||||
{
|
||||
self::$current_user_id = $uid;
|
||||
}
|
||||
|
|
|
@ -1068,6 +1068,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
|
||||
$_SESSION['authenticated'] = false;
|
||||
BasicAuth::setCurrentUserID();
|
||||
api_statuses_mediap('json');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue