Testing tests

This commit is contained in:
Michael 2021-11-17 22:50:43 +00:00
parent 420f6c652f
commit 3c0f22b2dd
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}

View file

@ -1068,6 +1068,7 @@ class ApiTest extends FixtureTest
{
$this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
$_SESSION['authenticated'] = false;
BasicAuth::setCurrentUserID();
api_statuses_mediap('json');
}