Lines Matching refs:user
32 $user = new SiteUser();
36 self::assertInstanceOf(UserInterface::class, $user);
37 self::assertSame(0, $user->id());
38 self::assertSame('email@example.com', $user->email());
39 self::assertSame('My site', $user->realName());
40 self::assertSame('', $user->userName());
45 $user = new SiteUser();
47 self::assertSame('', $user->getPreference('foo'));
48 self::assertSame('', $user->getPreference('foo'));
49 self::assertSame('bar', $user->getPreference('foo', 'bar'));
52 $user->setPreference('foo', 'bar');
54 self::assertSame('', $user->getPreference('foo'));