Skip to content

Commit

Permalink
add test for Session->duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Jun 17, 2010
1 parent 0e9b793 commit caacf34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/Session.t
Expand Up @@ -19,7 +19,7 @@ use WebGUI::User;

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;

Expand All @@ -36,6 +36,11 @@ $session->user({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');

my $dupe = $session->duplicate;
WebGUI::Test->addToCleanup($dupe);

is $session->getId, $dupe->getId, 'duplicated session has the same sessionId';

################################################################
#
# dbSlave
Expand Down

0 comments on commit caacf34

Please sign in to comment.