From: Sven Schöling Date: Thu, 5 Mar 2015 12:41:12 +0000 (+0100) Subject: Tests: price_tax_calculator.t muss vor Kunden löschen richtig aufräumen X-Git-Tag: release-3.2.1~52 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=186243bc389429821353c21154e612fec4ce44df;p=kivitendo-erp.git Tests: price_tax_calculator.t muss vor Kunden löschen richtig aufräumen --- diff --git a/t/db_helper/price_tax_calculator.t b/t/db_helper/price_tax_calculator.t index f7aa9ab0a..220cd42b5 100644 --- a/t/db_helper/price_tax_calculator.t +++ b/t/db_helper/price_tax_calculator.t @@ -14,8 +14,10 @@ use Test::Exception; use SL::DB::Buchungsgruppe; use SL::DB::Currency; use SL::DB::Customer; +use SL::DB::DeliveryOrder; use SL::DB::Employee; use SL::DB::Invoice; +use SL::DB::Order; use SL::DB::Part; use SL::DB::Unit; use SL::DB::TaxZone; @@ -27,6 +29,8 @@ sub reset_state { $params{$_} ||= {} for qw(buchungsgruppe unit customer part tax); + SL::DB::Manager::Order->delete_all(all => 1); + SL::DB::Manager::DeliveryOrder->delete_all(all => 1); SL::DB::Manager::Invoice->delete_all(all => 1); SL::DB::Manager::Part->delete_all(all => 1); SL::DB::Manager::Customer->delete_all(all => 1);