Add cleanup for Shop::Vendors. More end block removal.
This commit is contained in:
parent
41b7413d01
commit
b728eabd7b
4 changed files with 10 additions and 43 deletions
|
|
@ -43,10 +43,6 @@ my $loaded = use_ok('WebGUI::Shop::ShipDriver');
|
|||
|
||||
my $storage;
|
||||
|
||||
SKIP: {
|
||||
|
||||
skip 'Unable to load module WebGUI::Shop::ShipDriver', $tests unless $loaded;
|
||||
|
||||
#######################################################################
|
||||
#
|
||||
# definition
|
||||
|
|
@ -163,6 +159,7 @@ my $options = {
|
|||
};
|
||||
|
||||
$driver = WebGUI::Shop::ShipDriver->create( $session, $options );
|
||||
WebGUI::Test->addToCleanup($driver);
|
||||
|
||||
isa_ok($driver, 'WebGUI::Shop::ShipDriver');
|
||||
|
||||
|
|
@ -398,11 +395,3 @@ my $count = $session->db->quickScalar('select count(*) from shipper where shippe
|
|||
is($count, 0, 'delete deleted the object');
|
||||
|
||||
undef $driver;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Cleanup
|
||||
END {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue