convert all test cleanup to addToCleanup
This commit is contained in:
parent
421b9652cf
commit
4c18ba3563
82 changed files with 190 additions and 307 deletions
|
|
@ -153,7 +153,7 @@ cmp_deeply(
|
|||
#####################################################
|
||||
|
||||
my $exportStorage = WebGUI::Storage->create($session);
|
||||
WebGUI::Test->storagesToDelete($exportStorage);
|
||||
WebGUI::Test->addToCleanup($exportStorage);
|
||||
my $basedir = Path::Class::Dir->new($exportStorage->getPath);
|
||||
my $assetdir = $basedir->subdir('shawshank');
|
||||
my $indexfile = $assetdir->file('index.html');
|
||||
|
|
@ -171,7 +171,7 @@ cmp_bag(
|
|||
);
|
||||
|
||||
$exportStorage = WebGUI::Storage->create($session);
|
||||
WebGUI::Test->storagesToDelete($exportStorage);
|
||||
WebGUI::Test->addToCleanup($exportStorage);
|
||||
$basedir = Path::Class::Dir->new($exportStorage->getPath);
|
||||
my $assetfile = $basedir->file('shawshank.html');
|
||||
$dummy->exportAssetCollateral($assetfile, {}, $session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue