Lines Matching refs:user
30 $user = new GuestUser();
32 self::assertInstanceOf(UserInterface::class, $user);
33 self::assertSame(0, $user->id());
34 self::assertSame('GUEST_USER', $user->email());
35 self::assertSame('GUEST_USER', $user->realName());
36 self::assertSame('', $user->userName());
41 $user = new GuestUser('guest@example.com', 'guest user');
43 self::assertInstanceOf(UserInterface::class, $user);
44 self::assertSame(0, $user->id());
45 self::assertSame('guest@example.com', $user->email());
46 self::assertSame('guest user', $user->realName());
47 self::assertSame('', $user->userName());
52 $user = new GuestUser();
54 self::assertSame('', $user->getPreference('foo'));
55 self::assertSame('', $user->getPreference('foo'));
56 self::assertSame('bar', $user->getPreference('foo', 'bar'));
59 $user->setPreference('foo', 'bar');
61 self::assertSame('bar', $user->getPreference('foo'));