diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 93a8d173e..67ef29ada 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(api_get_user()); + self::assertFalse(BaseApi::getCurrentUserID()); } /**