Lines Matching refs:user
32 $user = new NoReplyUser();
34 self::assertInstanceOf(UserInterface::class, $user);
35 self::assertSame(0, $user->id());
36 self::assertSame('no-reply@localhost', $user->email());
37 self::assertSame(Webtrees::NAME, $user->realName());
38 self::assertSame('', $user->userName());
43 $user = new NoReplyUser();
45 self::assertSame('', $user->getPreference('foo'));
46 self::assertSame('', $user->getPreference('foo'));
47 self::assertSame('bar', $user->getPreference('foo', 'bar'));
50 $user->setPreference('foo', 'bar');
52 self::assertSame('', $user->getPreference('foo'));