Lines Matching refs:user
46 $user = new DefaultUser();
48 self::assertInstanceOf(UserInterface::class, $user);
49 self::assertSame(-1, $user->id());
50 self::assertSame('DEFAULT_USER', $user->email());
51 self::assertSame('DEFAULT_USER', $user->realName());
52 self::assertSame('', $user->userName());
57 $user = new DefaultUser();
59 self::assertSame('', $user->getPreference('foo'));
60 self::assertSame('', $user->getPreference('foo'));
61 self::assertSame('bar', $user->getPreference('foo', 'bar'));
64 $user->setPreference('foo', 'bar');
66 self::assertSame('bar', $user->getPreference('foo'));