diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 67ef29adab..60cffab1d1 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -715,7 +715,7 @@ class ApiTest extends FixtureTest $_SERVER['PHP_AUTH_PW'] = 'password'; $_SESSION['allow_api'] = false; BasicAuth::setCurrentUserID(); - self::assertFalse(BaseApi::getCurrentUserID()); + self::assertFalse(BaseApi::getCurrentUserID(true)); } /**