Fixing tests - maybe

This commit is contained in:
Michael 2021-11-17 22:12:21 +00:00
parent 9e30bd8ff7
commit abbe7895ae
2 changed files with 6 additions and 0 deletions

View file

@ -62,6 +62,11 @@ class BasicAuth
return (int)self::$current_user_id;
}
public static function setCurrentUserID(int $uid)
{
self::$current_user_id = $uid;
}
/**
* Fetch a dummy application token
*

View file

@ -114,6 +114,7 @@ class ApiTest extends FixtureTest
'authenticated' => true,
'uid' => $this->selfUser['id']
];
BasicAuth::setCurrentUserID($this->selfUser['id']);
}
/**