From 66fcb1c6c46c36bd30cb6fdcca4a43e7c57c1ac6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 7 Sep 2015 18:18:07 +0200 Subject: [PATCH] Tests erweitert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Neuer BackgroundJob und den Standard Employee nicht in meinem Testfall löschen, da dieser bei späteren Tests noch verwendet wird. --- t/background_job/known_jobs.t | 3 ++- t/db_helper/convert_invoice.t | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.20.1