add test for Session->duplicate
This commit is contained in:
parent
0e9b793af9
commit
caacf34d05
1 changed files with 6 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ use WebGUI::User;
|
||||||
|
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
plan tests => 4; # increment this value for each test you create
|
plan tests => 5; # increment this value for each test you create
|
||||||
|
|
||||||
my $session = WebGUI::Test->session;
|
my $session = WebGUI::Test->session;
|
||||||
|
|
||||||
|
|
@ -36,6 +36,11 @@ $session->user({userId => 3});
|
||||||
is($session->user->userId, 3, 'Set session user to Admin, check userId==3');
|
is($session->user->userId, 3, 'Set session user to Admin, check userId==3');
|
||||||
is($session->user->profileField('uiLevel'), 9, 'Set session user to Admin, check uiLevel==9');
|
is($session->user->profileField('uiLevel'), 9, 'Set session user to Admin, check uiLevel==9');
|
||||||
|
|
||||||
|
my $dupe = $session->duplicate;
|
||||||
|
WebGUI::Test->addToCleanup($dupe);
|
||||||
|
|
||||||
|
is $session->getId, $dupe->getId, 'duplicated session has the same sessionId';
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
#
|
#
|
||||||
# dbSlave
|
# dbSlave
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue