Testing tests
This commit is contained in:
parent
420f6c652f
commit
3c0f22b2dd
|
@ -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