Skip to content

Commit 19b6f9d

Browse files
committedOct 19, 2011
Convert to the correct kind of helper syntax for Fork work.
1 parent 50616de commit 19b6f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎t/AssetHelper/Product/ImportCSV.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ my $helper = WebGUI::AssetHelper::Product::ImportCSV->new(
5353
);
5454
my $importProducts = \&WebGUI::AssetHelper::Product::ImportCSV::importProducts;
5555
my $process = Test::MockObject::Extends->new( WebGUI::Fork->create( $session ) );
56-
addToCleanup( sub { $process->delete } );
56+
WebGUI::Test->addToCleanup( sub { $process->delete } );
5757

5858
eval { $importProducts->( $process, { assetId => $helper->asset->getId } ); };
5959
my $e = Exception::Class->caught();
@@ -83,7 +83,7 @@ SKIP: {
8383

8484
chmod oct(0000), $productsTempFile;
8585

86-
eval { $shelf->importProducts($productsTempFile); };
86+
eval { $shelf->importProducts($process, { assetId => $helper->asset->getId, filePath => $productsTempFile } ); };
8787
$e = Exception::Class->caught();
8888
isa_ok($e, 'WebGUI::Error::InvalidFile', 'importProducts: error handling for file that cannot be read') || skip 'invalid error thrown', 2;
8989
is($e->error, 'File is not readable', 'importProducts: error handling for file that that cannot be read');

0 commit comments

Comments
 (0)
Please sign in to comment.