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;
|
return (int)self::$current_user_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function setCurrentUserID(int $uid)
|
public static function setCurrentUserID(int $uid = null)
|
||||||
{
|
{
|
||||||
self::$current_user_id = $uid;
|
self::$current_user_id = $uid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1068,6 +1068,7 @@ class ApiTest extends FixtureTest
|
||||||
{
|
{
|
||||||
$this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
|
$this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
|
||||||
$_SESSION['authenticated'] = false;
|
$_SESSION['authenticated'] = false;
|
||||||
|
BasicAuth::setCurrentUserID();
|
||||||
api_statuses_mediap('json');
|
api_statuses_mediap('json');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue