MCPcopy Create free account
hub / github.com/Rello/analytics / FakeUserManager

Class FakeUserManager

tests/Activity/ActivityAccessTest.php:242–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242class FakeUserManager implements IUserManager {
243 private $users;
244
245 public function __construct(array $users) {
246 $this->users = $users;
247 }
248
249 public function get($uid) {
250 return $this->users[$uid] ?? null;
251 }
252
253 public function userExists($uid) {
254 return isset($this->users[$uid]);
255 }
256}
257
258class FakeUser implements IUser {
259 private $uid;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected