From: Jan Büren Date: Mon, 7 Sep 2015 16:18:07 +0000 (+0200) Subject: Tests erweitert X-Git-Tag: release-3.4.1~748 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=66fcb1c6c46c36bd30cb6fdcca4a43e7c57c1ac6;p=kivitendo-erp.git Tests erweitert Neuer BackgroundJob und den Standard Employee nicht in meinem Testfall löschen, da dieser bei späteren Tests noch verwendet wird. --- diff --git a/t/background_job/known_jobs.t b/t/background_job/known_jobs.t index db6000029..77150eeac 100644 --- a/t/background_job/known_jobs.t +++ b/t/background_job/known_jobs.t @@ -6,7 +6,8 @@ use Support::TestSetup; use_ok 'SL::BackgroundJob::Base'; -my @expected_known_job_classes = qw(BackgroundJobCleanup CleanAuthSessions CleanBackgroundJobHistory CreatePeriodicInvoices CsvImport FailedBackgroundJobsReport SelfTest Test); +my @expected_known_job_classes = qw(BackgroundJobCleanup CleanAuthSessions CleanBackgroundJobHistory CreatePeriodicInvoices CsvImport FailedBackgroundJobsReport + MassRecordCreationAndPrinting SelfTest Test); is_deeply [ SL::BackgroundJob::Base->get_known_job_classes ], \@expected_known_job_classes, 'get_known_job_classes called as class method'; my $job = new_ok 'SL::BackgroundJob::Base'; diff --git a/t/db_helper/convert_invoice.t b/t/db_helper/convert_invoice.t index 088bb087f..f883cd504 100644 --- a/t/db_helper/convert_invoice.t +++ b/t/db_helper/convert_invoice.t @@ -30,9 +30,10 @@ my ($customer, $currency_id, $buchungsgruppe, $employee, $vendor, $taxzone, $buc my $VISUAL_TEST = 0; # just a sleep to click around sub clear_up { - foreach (qw(DeliveryOrderItem DeliveryOrder InvoiceItem Invoice Part Customer Vendor Employee Department PaymentTerm)) { + foreach (qw(DeliveryOrderItem DeliveryOrder InvoiceItem Invoice Part Customer Vendor Department PaymentTerm)) { "SL::DB::Manager::${_}"->delete_all(all => 1); } + SL::DB::Manager::Employee->delete_all(where => [ id => 31915 ]); }; sub reset_state {