add uiLevel tests for Visitor and Admin
This commit is contained in:
parent
ebf093775e
commit
2893409d05
2 changed files with 7 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ use WebGUI::User;
|
|||
|
||||
use Test::More;
|
||||
|
||||
plan tests => 2; # increment this value for each test you create
|
||||
plan tests => 3; # increment this value for each test you create
|
||||
|
||||
my $session = WebGUI::Test->session;
|
||||
|
||||
|
|
@ -31,6 +31,9 @@ my ($userId) = $session->db->quickArray("select userId from userSession where se
|
|||
|
||||
is($userId, $user->userId, 'changing session user changes sessionId inside userSession table');
|
||||
|
||||
$session->user({userId => 3});
|
||||
is($session->user->profileField('uiLevel'), 9, 'Set session user to Admin, check uiLevel==9');
|
||||
|
||||
################################################################
|
||||
#
|
||||
# dbSlave
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue