diff --git a/t/AssetHelper/Product/ImportCSV.t b/t/AssetHelper/Product/ImportCSV.t index f734c1084..771e4b3b1 100644 --- a/t/AssetHelper/Product/ImportCSV.t +++ b/t/AssetHelper/Product/ImportCSV.t @@ -83,7 +83,7 @@ SKIP: { chmod oct(0000), $productsTempFile; - eval { $shelf->importProducts($process, { assetId => $helper->asset->getId, filePath => $productsTempFile } ); }; + eval { $importProducts->($process, { assetId => $helper->asset->getId, filePath => $productsTempFile } ); }; $e = Exception::Class->caught(); isa_ok($e, 'WebGUI::Error::InvalidFile', 'importProducts: error handling for file that cannot be read') || skip 'invalid error thrown', 2; is($e->error, 'File is not readable', 'importProducts: error handling for file that that cannot be read');