Fixing tests - maybe
This commit is contained in:
parent
9e30bd8ff7
commit
abbe7895ae
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -114,6 +114,7 @@ class ApiTest extends FixtureTest
|
|||
'authenticated' => true,
|
||||
'uid' => $this->selfUser['id']
|
||||
];
|
||||
BasicAuth::setCurrentUserID($this->selfUser['id']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue