Tests erweitert
authorJan Büren <jan@kivitendo-premium.de>
Mon, 7 Sep 2015 16:18:07 +0000 (18:18 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 7 Sep 2015 16:18:07 +0000 (18:18 +0200)
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
t/db_helper/convert_invoice.t

index db60000..77150ee 100644 (file)
@@ -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';
index 088bb08..f883cd5 100644 (file)
@@ -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 {