Fixing tests - maybe
This commit is contained in:
parent
9e30bd8ff7
commit
abbe7895ae
|
@ -62,6 +62,11 @@ class BasicAuth
|
||||||
return (int)self::$current_user_id;
|
return (int)self::$current_user_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function setCurrentUserID(int $uid)
|
||||||
|
{
|
||||||
|
self::$current_user_id = $uid;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch a dummy application token
|
* Fetch a dummy application token
|
||||||
*
|
*
|
||||||
|
|
|
@ -114,6 +114,7 @@ class ApiTest extends FixtureTest
|
||||||
'authenticated' => true,
|
'authenticated' => true,
|
||||||
'uid' => $this->selfUser['id']
|
'uid' => $this->selfUser['id']
|
||||||
];
|
];
|
||||||
|
BasicAuth::setCurrentUserID($this->selfUser['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user