More test cleanups.
This commit is contained in:
parent
f53af08e27
commit
5144dfa04f
2 changed files with 3 additions and 3 deletions
|
|
@ -132,6 +132,7 @@ is($session->db->quickScalar("select count(*) from cartItem where cartId=?",[ $c
|
||||||
|
|
||||||
|
|
||||||
my $session2 = WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
my $session2 = WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
||||||
|
WebGUI::Test->sessionsToDelete($session2);
|
||||||
$session2->user({userId => 3});
|
$session2->user({userId => 3});
|
||||||
my $cart2 = WebGUI::Shop::Cart->newBySession($session2);
|
my $cart2 = WebGUI::Shop::Cart->newBySession($session2);
|
||||||
isnt(
|
isnt(
|
||||||
|
|
@ -161,5 +162,4 @@ END {
|
||||||
if ($shipper) {
|
if ($shipper) {
|
||||||
$shipper->delete;
|
$shipper->delete;
|
||||||
}
|
}
|
||||||
$session2->close;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,13 @@ my $donation = $root->addChild({
|
||||||
});
|
});
|
||||||
my $tag = WebGUI::VersionTag->getWorking($session);
|
my $tag = WebGUI::VersionTag->getWorking($session);
|
||||||
$tag->commit;
|
$tag->commit;
|
||||||
|
WebGUI::Test->tagsToRollback($tag);
|
||||||
|
|
||||||
|
|
||||||
my $cart1 = WebGUI::Shop::Cart->create($session);
|
my $cart1 = WebGUI::Shop::Cart->create($session);
|
||||||
|
|
||||||
my $session2 = WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
my $session2 = WebGUI::Session->open(WebGUI::Test->root, WebGUI::Test->file);
|
||||||
|
WebGUI::Test->sessionsToDelete($session2);
|
||||||
my $cart2 = WebGUI::Shop::Cart->create($session2);
|
my $cart2 = WebGUI::Shop::Cart->create($session2);
|
||||||
$cart2->update({creationDate => time()-10000});
|
$cart2->update({creationDate => time()-10000});
|
||||||
|
|
||||||
|
|
@ -104,7 +106,5 @@ END {
|
||||||
$workflow->delete;
|
$workflow->delete;
|
||||||
$cart1->delete;
|
$cart1->delete;
|
||||||
$cart2->delete;
|
$cart2->delete;
|
||||||
$session2->close;
|
|
||||||
$donation->purge;
|
$donation->purge;
|
||||||
$tag->rollback;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue