csv_import tests: Falsche Parameterübergabe
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 22 Aug 2017 15:43:38 +0000 (17:43 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 22 Aug 2017 15:43:38 +0000 (17:43 +0200)
t/controllers/csvimport/artransactions.t
t/controllers/csvimport/parts.t

index 8dc650d..670b5ab 100644 (file)
@@ -86,7 +86,7 @@ sub test_import {
   );
 
   # $csv_artransactions_import->init_vc_by;
-  $csv_artransactions_import->run({test => 0});
+  $csv_artransactions_import->run(test => 0);
 
   # don't try and save objects that have errors
   $csv_artransactions_import->save_objects unless scalar @{$csv_artransactions_import->controller->data->[0]->{errors}};
index fcb0685..86a3c78 100644 (file)
@@ -115,7 +115,7 @@ sub test_import {
   );
   #print "profile param type=".$csv_part_import->settings->{parts_type}."\n";
 
-  $csv_part_import->run({test => 0});
+  $csv_part_import->run(test => 0);
 
   # don't try and save objects that have errors
   $csv_part_import->save_objects unless scalar @{$csv_part_import->controller->data->[0]->{errors}};