Neuer BackgroundJob und den Standard Employee nicht in meinem
Testfall löschen, da dieser bei späteren Tests noch verwendet wird.
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';
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 {