removing first parameter from WebGUI::Session->open and other cleanups
This commit is contained in:
parent
29df110409
commit
a141de0ebf
39 changed files with 150 additions and 291 deletions
|
|
@ -58,14 +58,14 @@ note $scratchCount;
|
|||
my @sessions;
|
||||
|
||||
foreach (1..2) {
|
||||
push @sessions, WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
||||
push @sessions, WebGUI::Session->open(WebGUI::Test->file);
|
||||
}
|
||||
|
||||
##Force automatic expiration of the sessions
|
||||
$session->setting->set('sessionTimeout', -500);
|
||||
|
||||
foreach (1..2) {
|
||||
push @sessions, WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
||||
push @sessions, WebGUI::Session->open(WebGUI::Test->file);
|
||||
}
|
||||
|
||||
$session->setting->set('sessionTimeout', $origSessionTimeout );
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ WebGUI::Test->tagsToRollback($tag);
|
|||
|
||||
my $cart1 = WebGUI::Shop::Cart->create($session);
|
||||
|
||||
my $session2 = WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
||||
WebGUI::Test->sessionsToDelete($session2);
|
||||
my $session2 = WebGUI::Session->open(WebGUI::Test->file);
|
||||
addToCleanup($session2);
|
||||
my $cart2 = WebGUI::Shop::Cart->create($session2);
|
||||
$cart2->update({creationDate => time()-10000});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue