Lines Matching refs:user
37 $user = new TreeUser($tree);
39 self::assertInstanceOf(UserInterface::class, $user);
40 self::assertSame(0, $user->id());
41 self::assertSame('', $user->email());
42 self::assertSame('title', $user->realName());
43 self::assertSame('', $user->userName());
51 $user = new TreeUser($tree);
53 self::assertSame('', $user->getPreference('foo'));
54 self::assertSame('', $user->getPreference('foo'));
55 self::assertSame('bar', $user->getPreference('foo', 'bar'));
58 $user->setPreference('foo', 'bar');
60 self::assertSame('', $user->getPreference('foo'));