Revision 66fcb1c6
Von Jan Büren vor mehr als 9 Jahren hinzugefügt
t/background_job/known_jobs.t | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use_ok 'SL::BackgroundJob::Base'; |
8 | 8 |
|
9 |
my @expected_known_job_classes = qw(BackgroundJobCleanup CleanAuthSessions CleanBackgroundJobHistory CreatePeriodicInvoices CsvImport FailedBackgroundJobsReport SelfTest Test); |
|
9 |
my @expected_known_job_classes = qw(BackgroundJobCleanup CleanAuthSessions CleanBackgroundJobHistory CreatePeriodicInvoices CsvImport FailedBackgroundJobsReport |
|
10 |
MassRecordCreationAndPrinting SelfTest Test); |
|
10 | 11 |
is_deeply [ SL::BackgroundJob::Base->get_known_job_classes ], \@expected_known_job_classes, 'get_known_job_classes called as class method'; |
11 | 12 |
|
12 | 13 |
my $job = new_ok 'SL::BackgroundJob::Base'; |
t/db_helper/convert_invoice.t | ||
---|---|---|
30 | 30 |
my $VISUAL_TEST = 0; # just a sleep to click around |
31 | 31 |
|
32 | 32 |
sub clear_up { |
33 |
foreach (qw(DeliveryOrderItem DeliveryOrder InvoiceItem Invoice Part Customer Vendor Employee Department PaymentTerm)) {
|
|
33 |
foreach (qw(DeliveryOrderItem DeliveryOrder InvoiceItem Invoice Part Customer Vendor Department PaymentTerm)) { |
|
34 | 34 |
"SL::DB::Manager::${_}"->delete_all(all => 1); |
35 | 35 |
} |
36 |
SL::DB::Manager::Employee->delete_all(where => [ id => 31915 ]); |
|
36 | 37 |
}; |
37 | 38 |
|
38 | 39 |
sub reset_state { |
Auch abrufbar als: Unified diff
Tests erweitert
Neuer BackgroundJob und den Standard Employee nicht in meinem
Testfall löschen, da dieser bei späteren Tests noch verwendet wird.