Lines Matching refs:Auth
75 Auth::login($admin);
76 self::assertTrue(Auth::isAdmin(), 'admin isAdmin()');
77 self::assertTrue(Auth::isManager($tree), 'admin isManager()');
78 self::assertTrue(Auth::isModerator($tree), 'admin isModerator()');
79 self::assertTrue(Auth::isEditor($tree), 'admin isEditor()');
80 self::assertTrue(Auth::isMember($tree), 'admin isMember()');
82 Auth::login($manager);
83 self::assertFalse(Auth::isAdmin(), 'manager NOT isAdmin()');
84 self::assertTrue(Auth::isManager($tree, $manager), 'manager isManager()');
85 self::assertTrue(Auth::isModerator($tree, $manager), 'manager isModerator()');
86 self::assertTrue(Auth::isEditor($tree, $manager), 'manager isEditor()');
87 self::assertTrue(Auth::isMember($tree, $manager), 'manager isMember()');
89 Auth::login($moderator);
90 self::assertFalse(Auth::isAdmin(), 'moderator NOT isAdmin()');
91 self::assertFalse(Auth::isManager($tree, $moderator), 'moderator NOT isManager()');
92 self::assertTrue(Auth::isModerator($tree, $moderator), 'moderator isModerator()');
93 self::assertTrue(Auth::isEditor($tree, $moderator), 'moderator isEditor()');
94 self::assertTrue(Auth::isMember($tree, $moderator), 'moderator isMember()');
96 Auth::login($editor);
97 self::assertFalse(Auth::isAdmin(), 'editor NOT isAdmin()');
98 self::assertFalse(Auth::isManager($tree, $editor), 'editor NOT isManager()');
99 self::assertFalse(Auth::isModerator($tree, $editor), 'editor isModerator()');
100 self::assertTrue(Auth::isEditor($tree, $editor), 'editor isEditor()');
101 self::assertTrue(Auth::isMember($tree, $editor), 'editor isMember()');
103 Auth::login($member);
104 self::assertFalse(Auth::isAdmin(), 'member NOT isAdmin()');
105 self::assertFalse(Auth::isManager($tree, $member), 'member NOT isManager()');
106 self::assertFalse(Auth::isModerator($tree, $member), 'member isModerator()');
107 self::assertFalse(Auth::isEditor($tree, $member), 'member isEditor()');
108 self::assertTrue(Auth::isMember($tree, $member), 'member isMember()');
110 Auth::login($visitor);
111 self::assertFalse(Auth::isAdmin(), 'visitor NOT isAdmin()');
112 self::assertFalse(Auth::isManager($tree, $visitor), 'visitor NOT isManager()');
113 self::assertFalse(Auth::isModerator($tree, $visitor), 'visitor isModerator()');
114 self::assertFalse(Auth::isEditor($tree, $visitor), 'visitor isEditor()');
115 self::assertFalse(Auth::isMember($tree, $visitor), 'visitor isMember()');
117 Auth::logout();
119 Auth::login($admin);
123 Auth::login($manager);
127 Auth::login($moderator);
131 Auth::login($editor);
135 Auth::login($member);
139 Auth::login($visitor);
143 Auth::logout();
148 Auth::login($member);