From fd720b0e4dd385aebd8c458c93c14c5d435a3ef2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 17 Mar 2024 03:57:41 +0000 Subject: [PATCH 1/3] test fixes --- Controller/ApiPurchaseController.php | 2 +- Models/BillMapper.php | 6 +- Theme/Backend/Lang/Navigation.ar.lang.php | 22 ------- Theme/Backend/Lang/Navigation.cs.lang.php | 22 ------- Theme/Backend/Lang/Navigation.da.lang.php | 22 ------- Theme/Backend/Lang/Navigation.de.lang.php | 2 + Theme/Backend/Lang/Navigation.el.lang.php | 22 ------- Theme/Backend/Lang/Navigation.es.lang.php | 22 ------- Theme/Backend/Lang/Navigation.fi.lang.php | 22 ------- Theme/Backend/Lang/Navigation.fr.lang.php | 22 ------- Theme/Backend/Lang/Navigation.hu.lang.php | 22 ------- Theme/Backend/Lang/Navigation.it.lang.php | 22 ------- Theme/Backend/Lang/Navigation.ja.lang.php | 22 ------- Theme/Backend/Lang/Navigation.ko.lang.php | 22 ------- Theme/Backend/Lang/Navigation.no.lang.php | 22 ------- Theme/Backend/Lang/Navigation.pl.lang.php | 22 ------- Theme/Backend/Lang/Navigation.pt.lang.php | 22 ------- Theme/Backend/Lang/Navigation.ru.lang.php | 22 ------- Theme/Backend/Lang/Navigation.sv.lang.php | 22 ------- Theme/Backend/Lang/Navigation.th.lang.php | 22 ------- Theme/Backend/Lang/Navigation.tr.lang.php | 22 ------- Theme/Backend/Lang/Navigation.uk.lang.php | 22 ------- Theme/Backend/Lang/Navigation.zh.lang.php | 22 ------- Theme/Backend/Lang/ar.lang.php | 77 ----------------------- Theme/Backend/Lang/cs.lang.php | 77 ----------------------- Theme/Backend/Lang/da.lang.php | 77 ----------------------- Theme/Backend/Lang/el.lang.php | 77 ----------------------- Theme/Backend/Lang/es.lang.php | 77 ----------------------- Theme/Backend/Lang/fi.lang.php | 77 ----------------------- Theme/Backend/Lang/fr.lang.php | 77 ----------------------- Theme/Backend/Lang/hu.lang.php | 77 ----------------------- Theme/Backend/Lang/it.lang.php | 77 ----------------------- Theme/Backend/Lang/ja.lang.php | 77 ----------------------- Theme/Backend/Lang/ko.lang.php | 77 ----------------------- Theme/Backend/Lang/no.lang.php | 77 ----------------------- Theme/Backend/Lang/pl.lang.php | 77 ----------------------- Theme/Backend/Lang/pt.lang.php | 77 ----------------------- Theme/Backend/Lang/ru.lang.php | 77 ----------------------- Theme/Backend/Lang/sv.lang.php | 77 ----------------------- Theme/Backend/Lang/th.lang.php | 77 ----------------------- Theme/Backend/Lang/tr.lang.php | 77 ----------------------- Theme/Backend/Lang/uk.lang.php | 77 ----------------------- Theme/Backend/Lang/zh.lang.php | 77 ----------------------- tests/Models/BillElementTest.php | 8 ++- tests/Models/BillTest.php | 6 +- tests/Models/InvoiceRecognitionTest.php | 13 ++++ 46 files changed, 23 insertions(+), 1994 deletions(-) delete mode 100755 Theme/Backend/Lang/Navigation.ar.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.cs.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.da.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.el.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.es.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.fi.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.fr.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.hu.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.it.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.ja.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.ko.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.no.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.pl.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.pt.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.ru.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.sv.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.th.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.tr.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.uk.lang.php delete mode 100755 Theme/Backend/Lang/Navigation.zh.lang.php delete mode 100755 Theme/Backend/Lang/ar.lang.php delete mode 100755 Theme/Backend/Lang/cs.lang.php delete mode 100755 Theme/Backend/Lang/da.lang.php delete mode 100755 Theme/Backend/Lang/el.lang.php delete mode 100755 Theme/Backend/Lang/es.lang.php delete mode 100755 Theme/Backend/Lang/fi.lang.php delete mode 100755 Theme/Backend/Lang/fr.lang.php delete mode 100755 Theme/Backend/Lang/hu.lang.php delete mode 100755 Theme/Backend/Lang/it.lang.php delete mode 100755 Theme/Backend/Lang/ja.lang.php delete mode 100755 Theme/Backend/Lang/ko.lang.php delete mode 100755 Theme/Backend/Lang/no.lang.php delete mode 100755 Theme/Backend/Lang/pl.lang.php delete mode 100755 Theme/Backend/Lang/pt.lang.php delete mode 100755 Theme/Backend/Lang/ru.lang.php delete mode 100755 Theme/Backend/Lang/sv.lang.php delete mode 100755 Theme/Backend/Lang/th.lang.php delete mode 100755 Theme/Backend/Lang/tr.lang.php delete mode 100755 Theme/Backend/Lang/uk.lang.php delete mode 100755 Theme/Backend/Lang/zh.lang.php diff --git a/Controller/ApiPurchaseController.php b/Controller/ApiPurchaseController.php index d15f382..0bd3b86 100755 --- a/Controller/ApiPurchaseController.php +++ b/Controller/ApiPurchaseController.php @@ -245,7 +245,7 @@ final class ApiPurchaseController extends Controller ); } catch (\Throwable $t) { $response->header->status = RequestStatusCode::R_400; - $this->app->logger->error($t->getMessage()); + $this->app->logger?->error($t->getMessage()); } $this->createStandardUpdateResponse($request, $response, $bill); diff --git a/Models/BillMapper.php b/Models/BillMapper.php index 2d94804..ee72a5b 100755 --- a/Models/BillMapper.php +++ b/Models/BillMapper.php @@ -142,11 +142,7 @@ class BillMapper extends DataMapperFactory 'referral' => [ 'mapper' => AccountMapper::class, 'external' => 'billing_bill_referral', - ], - 'template' => [ - 'mapper' => CollectionMapper::class, - 'external' => 'billing_bill_template', - ], + ] ]; /** diff --git a/Theme/Backend/Lang/Navigation.ar.lang.php b/Theme/Backend/Lang/Navigation.ar.lang.php deleted file mode 100755 index 7aa0f42..0000000 --- a/Theme/Backend/Lang/Navigation.ar.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'أرشيف', - 'Bill' => 'فاتورة', - 'Billing' => 'الفواتير', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.cs.lang.php b/Theme/Backend/Lang/Navigation.cs.lang.php deleted file mode 100755 index ea42018..0000000 --- a/Theme/Backend/Lang/Navigation.cs.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Archiv', - 'Bill' => 'Účtovat', - 'Billing' => 'Fakturační', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.da.lang.php b/Theme/Backend/Lang/Navigation.da.lang.php deleted file mode 100755 index f877e46..0000000 --- a/Theme/Backend/Lang/Navigation.da.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Arkiv', - 'Bill' => 'Regning', - 'Billing' => 'Fakturering', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.de.lang.php b/Theme/Backend/Lang/Navigation.de.lang.php index 38cca7d..2adfaa3 100755 --- a/Theme/Backend/Lang/Navigation.de.lang.php +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -19,4 +19,6 @@ return ['Navigation' => [ 'InvoiceRecognition' => 'Rechnungserkennung', 'Open' => 'Offen', 'Upload' => 'Hochladen', + 'PaymentTerms' => 'Zahlungsbedingungen', + 'ShippingTerms' => 'Lieferbedingungen', ]]; diff --git a/Theme/Backend/Lang/Navigation.el.lang.php b/Theme/Backend/Lang/Navigation.el.lang.php deleted file mode 100755 index d354442..0000000 --- a/Theme/Backend/Lang/Navigation.el.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Αρχειοθέτηση', - 'Bill' => 'Νομοσχέδιο', - 'Billing' => 'Χρέωση', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.es.lang.php b/Theme/Backend/Lang/Navigation.es.lang.php deleted file mode 100755 index bb891a5..0000000 --- a/Theme/Backend/Lang/Navigation.es.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Archivo', - 'Bill' => 'Factura', - 'Billing' => 'Facturación', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.fi.lang.php b/Theme/Backend/Lang/Navigation.fi.lang.php deleted file mode 100755 index af202a4..0000000 --- a/Theme/Backend/Lang/Navigation.fi.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Arkisto', - 'Bill' => 'Laskuttaa', - 'Billing' => 'Laskutus', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.fr.lang.php b/Theme/Backend/Lang/Navigation.fr.lang.php deleted file mode 100755 index b03b3f9..0000000 --- a/Theme/Backend/Lang/Navigation.fr.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Archiver', - 'Bill' => 'Facture', - 'Billing' => 'Facturation', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.hu.lang.php b/Theme/Backend/Lang/Navigation.hu.lang.php deleted file mode 100755 index 3ed9664..0000000 --- a/Theme/Backend/Lang/Navigation.hu.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Archívum', - 'Bill' => 'Számla', - 'Billing' => 'Számlázás', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.it.lang.php b/Theme/Backend/Lang/Navigation.it.lang.php deleted file mode 100755 index b6b0fa5..0000000 --- a/Theme/Backend/Lang/Navigation.it.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Archivio', - 'Bill' => 'Conto', - 'Billing' => 'Fatturazione', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.ja.lang.php b/Theme/Backend/Lang/Navigation.ja.lang.php deleted file mode 100755 index cf31987..0000000 --- a/Theme/Backend/Lang/Navigation.ja.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'アーカイブ', - 'Bill' => '明細書', - 'Billing' => '請求する', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.ko.lang.php b/Theme/Backend/Lang/Navigation.ko.lang.php deleted file mode 100755 index 3bf7a27..0000000 --- a/Theme/Backend/Lang/Navigation.ko.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => '보관소', - 'Bill' => '청구서', - 'Billing' => '청구자', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.no.lang.php b/Theme/Backend/Lang/Navigation.no.lang.php deleted file mode 100755 index eff6adc..0000000 --- a/Theme/Backend/Lang/Navigation.no.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Arkivet', - 'Bill' => 'Regning', - 'Billing' => 'Fakturering', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.pl.lang.php b/Theme/Backend/Lang/Navigation.pl.lang.php deleted file mode 100755 index c73685d..0000000 --- a/Theme/Backend/Lang/Navigation.pl.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Archiwum.', - 'Bill' => 'Rachunek', - 'Billing' => 'Dane do faktury', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.pt.lang.php b/Theme/Backend/Lang/Navigation.pt.lang.php deleted file mode 100755 index 3b1a805..0000000 --- a/Theme/Backend/Lang/Navigation.pt.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Arquivo', - 'Bill' => 'Conta', - 'Billing' => 'Cobrança', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.ru.lang.php b/Theme/Backend/Lang/Navigation.ru.lang.php deleted file mode 100755 index 34375fd..0000000 --- a/Theme/Backend/Lang/Navigation.ru.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Архив', - 'Bill' => 'Счет', - 'Billing' => 'Биллинг', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.sv.lang.php b/Theme/Backend/Lang/Navigation.sv.lang.php deleted file mode 100755 index 2804b86..0000000 --- a/Theme/Backend/Lang/Navigation.sv.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Arkiv', - 'Bill' => 'Räkningen', - 'Billing' => 'Fakturering', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.th.lang.php b/Theme/Backend/Lang/Navigation.th.lang.php deleted file mode 100755 index 22105de..0000000 --- a/Theme/Backend/Lang/Navigation.th.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'คลังเก็บเอกสารสำคัญ', - 'Bill' => 'ใบแจ้งหนี้', - 'Billing' => 'การเรียกเก็บเงิน', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.tr.lang.php b/Theme/Backend/Lang/Navigation.tr.lang.php deleted file mode 100755 index 6a59987..0000000 --- a/Theme/Backend/Lang/Navigation.tr.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Arşiv', - 'Bill' => 'Fatura', - 'Billing' => 'Fatura', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.uk.lang.php b/Theme/Backend/Lang/Navigation.uk.lang.php deleted file mode 100755 index 326287b..0000000 --- a/Theme/Backend/Lang/Navigation.uk.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => 'Архів', - 'Bill' => 'Вексель', - 'Billing' => 'Платіж', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/Navigation.zh.lang.php b/Theme/Backend/Lang/Navigation.zh.lang.php deleted file mode 100755 index 15de1af..0000000 --- a/Theme/Backend/Lang/Navigation.zh.lang.php +++ /dev/null @@ -1,22 +0,0 @@ - [ - 'Archive' => '档案', - 'Bill' => '账单', - 'Billing' => '结算', - 'InvoiceRecognition' => '', - 'Open' => '', - 'Upload' => '', -]]; diff --git a/Theme/Backend/Lang/ar.lang.php b/Theme/Backend/Lang/ar.lang.php deleted file mode 100755 index 7e12b2b..0000000 --- a/Theme/Backend/Lang/ar.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'تبوك', - 'Addresses' => 'عناوين', - 'AlreadyPaid' => 'مدفوع بالفعل', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'فواتير', - 'Bonus' => 'علاوة', - 'Cashback' => 'استرداد النقدي', - 'City' => 'مدينة', - 'Client' => 'عميل', - 'ClientID' => 'معرف العميل', - 'Confirmation' => 'تأكيد', - 'Country' => 'دولة', - 'Created' => 'خلقت', - 'CreditCard' => 'بطاقة إئتمان', - 'CreditNote' => 'اشعار دائن', - 'Currency' => '', - 'Date' => 'تاريخ', - 'Delivery' => 'توصيل', - 'DeliveryNote' => 'مذكرة تسليم', - 'DirectDebit' => 'directdebit.', - 'Discount' => 'خصم', - 'DiscountP' => 'خصم ٪', - 'Due' => 'بسبب', - 'Email' => '', - 'Freightage' => 'شحن', - 'Gross' => 'أزداد', - 'Invoice' => 'فاتورة', - 'Item' => 'العنصر', - 'Items' => 'أغراض', - 'Language' => '', - 'Log' => 'سجل', - 'Logs' => 'السجلات', - 'Media' => 'وسائط', - 'MoneyTransfer' => 'حوالة مالية', - 'Name' => 'اسم', - 'Net' => 'شبكة', - 'Offer' => 'عرض', - 'Original' => '', - 'Payment' => 'دفع', - 'PaymentPlan' => '', - 'Postal' => 'بريدي', - 'Prepaid' => 'مسبقة الدفع', - 'Preview' => 'معاينة', - 'Price' => 'السعر', - 'Profit' => 'ربح', - 'Quantity' => 'كمية', - 'Recipient' => 'متلقي', - 'Select' => 'يختار', - 'Shipment' => 'شحنة', - 'Source' => 'مصدر', - 'Supplier' => 'المورد', - 'SupplierID' => 'واسم المورد', - 'Tax' => 'ضريبة', - 'TermsOfDelivery' => 'شروط التوصيل', - 'Total' => 'مجموع', - 'Type' => 'نوع', - 'Types' => '', - 'Upload' => 'تحميل', - 'Zip' => 'أزيز', -]]; diff --git a/Theme/Backend/Lang/cs.lang.php b/Theme/Backend/Lang/cs.lang.php deleted file mode 100755 index e38fbb0..0000000 --- a/Theme/Backend/Lang/cs.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adresa', - 'Addresses' => 'Adresy', - 'AlreadyPaid' => 'Již zaplatil', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Účtenka', - 'Bonus' => 'Bonus', - 'Cashback' => 'Hotovost', - 'City' => 'Město', - 'Client' => 'Klienta', - 'ClientID' => 'ID klienta', - 'Confirmation' => 'potvrzení', - 'Country' => 'Země', - 'Created' => 'Vytvořený', - 'CreditCard' => 'Kreditní karta', - 'CreditNote' => 'Dobropis', - 'Currency' => '', - 'Date' => 'datum', - 'Delivery' => 'dodávka', - 'DeliveryNote' => 'Dodací list', - 'DirectDebit' => 'Inkaso', - 'Discount' => 'Sleva', - 'DiscountP' => 'Sleva%', - 'Due' => 'Způsoben', - 'Email' => '', - 'Freightage' => 'Dopravné', - 'Gross' => 'Hrubý', - 'Invoice' => 'Faktura', - 'Item' => 'Položka', - 'Items' => 'Položky', - 'Language' => '', - 'Log' => 'Log', - 'Logs' => 'Protokoly', - 'Media' => 'Mediální', - 'MoneyTransfer' => 'Převod peněz', - 'Name' => 'název', - 'Net' => 'Síť', - 'Offer' => 'Nabídka', - 'Original' => '', - 'Payment' => 'Způsob platby', - 'PaymentPlan' => '', - 'Postal' => 'Poštovní', - 'Prepaid' => 'Předplacený', - 'Preview' => 'Náhled', - 'Price' => 'Cena', - 'Profit' => 'Zisk', - 'Quantity' => 'Množství', - 'Recipient' => 'Příjemce', - 'Select' => 'Vybrat', - 'Shipment' => 'náklad', - 'Source' => 'Zdroj', - 'Supplier' => 'Dodavatel', - 'SupplierID' => 'ID dodavatele', - 'Tax' => 'Daň', - 'TermsOfDelivery' => 'Dodací podmínky', - 'Total' => 'Celkový', - 'Type' => 'Typ', - 'Types' => '', - 'Upload' => 'nahrát', - 'Zip' => 'Zip', -]]; diff --git a/Theme/Backend/Lang/da.lang.php b/Theme/Backend/Lang/da.lang.php deleted file mode 100755 index 3aaa037..0000000 --- a/Theme/Backend/Lang/da.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adresse', - 'Addresses' => 'Adresser', - 'AlreadyPaid' => 'Allerede betalt', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Regninger.', - 'Bonus' => 'Bonus', - 'Cashback' => 'Penge tilbage', - 'City' => 'City.', - 'Client' => 'Klient', - 'ClientID' => 'Klient ID.', - 'Confirmation' => 'Bekræftelse', - 'Country' => 'Land', - 'Created' => 'Oprettet', - 'CreditCard' => 'Kreditkort', - 'CreditNote' => 'Kreditnota', - 'Currency' => '', - 'Date' => 'Dato', - 'Delivery' => 'Levering', - 'DeliveryNote' => 'Levering note', - 'DirectDebit' => 'DirectDebit.', - 'Discount' => 'Rabat', - 'DiscountP' => 'Rabat%', - 'Due' => 'På grund', - 'Email' => '', - 'Freightage' => 'Gods', - 'Gross' => 'Brutto', - 'Invoice' => 'Faktura', - 'Item' => 'Vare', - 'Items' => 'Varer', - 'Language' => '', - 'Log' => 'Log', - 'Logs' => 'Logs.', - 'Media' => 'Medier', - 'MoneyTransfer' => 'Pengeoverførsel', - 'Name' => 'Navn', - 'Net' => 'Net', - 'Offer' => 'Tilbud', - 'Original' => '', - 'Payment' => 'Betaling', - 'PaymentPlan' => '', - 'Postal' => 'Postal.', - 'Prepaid' => 'Forudbetalt', - 'Preview' => 'Preview.', - 'Price' => 'Pris', - 'Profit' => 'Profit', - 'Quantity' => 'Antal', - 'Recipient' => 'Modtager', - 'Select' => 'Vælg', - 'Shipment' => 'Forsendelse', - 'Source' => 'Kilde', - 'Supplier' => 'Leverandør', - 'SupplierID' => 'Leverandør ID.', - 'Tax' => 'Skat', - 'TermsOfDelivery' => 'Leveringsbetingelser', - 'Total' => 'i alt', - 'Type' => 'Type', - 'Types' => '', - 'Upload' => 'Upload', - 'Zip' => 'Zip.', -]]; diff --git a/Theme/Backend/Lang/el.lang.php b/Theme/Backend/Lang/el.lang.php deleted file mode 100755 index 8bedd08..0000000 --- a/Theme/Backend/Lang/el.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Διεύθυνση', - 'Addresses' => 'Διευθύνσεις', - 'AlreadyPaid' => 'Ήδη πληρωθεί', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Λογαριασμοί', - 'Bonus' => 'Δώρο', - 'Cashback' => 'Επιστροφή μετρητών', - 'City' => 'Πόλη', - 'Client' => 'Πελάτης', - 'ClientID' => 'ταυτότητα πελάτη', - 'Confirmation' => 'Επιβεβαίωση', - 'Country' => 'Χώρα', - 'Created' => 'Δημιουργήθηκε', - 'CreditCard' => 'Πιστωτική κάρτα', - 'CreditNote' => 'Πιστωτικό σημείωμα', - 'Currency' => '', - 'Date' => 'Ημερομηνία', - 'Delivery' => 'Διανομή', - 'DeliveryNote' => 'Δελτίο παράδοσης', - 'DirectDebit' => 'Αμεση χρέωση', - 'Discount' => 'Εκπτωση', - 'DiscountP' => 'Έκπτωση%', - 'Due' => 'Λόγω', - 'Email' => '', - 'Freightage' => 'Ναύλος', - 'Gross' => 'Ακαθάριστο', - 'Invoice' => 'Τιμολόγιο', - 'Item' => 'Είδος', - 'Items' => 'Αντικείμενα', - 'Language' => '', - 'Log' => 'Κούτσουρο', - 'Logs' => 'Κούτσουρα', - 'Media' => 'Μεσο ΜΑΖΙΚΗΣ ΕΝΗΜΕΡΩΣΗΣ', - 'MoneyTransfer' => 'Μεταφορά χρημάτων', - 'Name' => 'Ονομα', - 'Net' => 'Καθαρά', - 'Offer' => 'Προσφορά', - 'Original' => '', - 'Payment' => 'Πληρωμή', - 'PaymentPlan' => '', - 'Postal' => 'Ταχυδρομικός', - 'Prepaid' => 'Προπληρωμένος', - 'Preview' => 'Προεπισκόπηση', - 'Price' => 'Τιμή', - 'Profit' => 'Κέρδος', - 'Quantity' => 'Ποσότητα', - 'Recipient' => 'Παραλήπτης', - 'Select' => 'Επιλέγω', - 'Shipment' => 'Αποστολή', - 'Source' => 'Πηγή', - 'Supplier' => 'Προμηθευτής', - 'SupplierID' => 'Προμηθευτή', - 'Tax' => 'Φόρος', - 'TermsOfDelivery' => 'Οροι παράδοσης', - 'Total' => 'Σύνολο', - 'Type' => 'Τύπος', - 'Types' => '', - 'Upload' => 'Μεταφόρτω', - 'Zip' => 'Φερμουάρ', -]]; diff --git a/Theme/Backend/Lang/es.lang.php b/Theme/Backend/Lang/es.lang.php deleted file mode 100755 index 42e0a37..0000000 --- a/Theme/Backend/Lang/es.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Habla a', - 'Addresses' => 'Direcciones', - 'AlreadyPaid' => 'Ya pagado', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Facturas', - 'Bonus' => 'Prima', - 'Cashback' => 'Devolución de dinero', - 'City' => 'Ciudad', - 'Client' => 'Cliente', - 'ClientID' => 'Identificación del cliente', - 'Confirmation' => 'Confirmación', - 'Country' => 'País', - 'Created' => 'Creado', - 'CreditCard' => 'Tarjeta de crédito', - 'CreditNote' => 'Nota de crédito', - 'Currency' => '', - 'Date' => 'Fecha', - 'Delivery' => 'Entrega', - 'DeliveryNote' => 'Nota de entrega', - 'DirectDebit' => 'Débito directo', - 'Discount' => 'Descuento', - 'DiscountP' => 'Descuento%', - 'Due' => 'Vencer', - 'Email' => '', - 'Freightage' => 'Flete', - 'Gross' => 'Bruto', - 'Invoice' => 'Factura', - 'Item' => 'Articulo', - 'Items' => 'Elementos', - 'Language' => '', - 'Log' => 'Tronco', - 'Logs' => 'Registros', - 'Media' => 'Medios de comunicación', - 'MoneyTransfer' => 'Transferencia de dinero', - 'Name' => 'Nombre', - 'Net' => 'Red', - 'Offer' => 'Oferta', - 'Original' => '', - 'Payment' => 'Pago', - 'PaymentPlan' => '', - 'Postal' => 'Postal', - 'Prepaid' => 'Pagado por adelantado', - 'Preview' => 'Avance', - 'Price' => 'Precio', - 'Profit' => 'Lucro', - 'Quantity' => 'Cantidad', - 'Recipient' => 'Recipiente', - 'Select' => 'Seleccione', - 'Shipment' => 'Envío', - 'Source' => 'Fuente', - 'Supplier' => 'Proveedor', - 'SupplierID' => 'Identificación del proveedor', - 'Tax' => 'Impuesto', - 'TermsOfDelivery' => 'Condiciones de entrega', - 'Total' => 'Total', - 'Type' => 'Escribe', - 'Types' => '', - 'Upload' => 'Subir', - 'Zip' => 'Cremallera', -]]; diff --git a/Theme/Backend/Lang/fi.lang.php b/Theme/Backend/Lang/fi.lang.php deleted file mode 100755 index bc65818..0000000 --- a/Theme/Backend/Lang/fi.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Osoite', - 'Addresses' => 'Osoitteet', - 'AlreadyPaid' => 'Jo maksettu', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Laskut', - 'Bonus' => 'Bonus', - 'Cashback' => 'Vaihtorahat', - 'City' => 'Kaupunki', - 'Client' => 'Asiakas', - 'ClientID' => 'Asiakastunnus', - 'Confirmation' => 'Vahvistus', - 'Country' => 'Maa', - 'Created' => 'Luotu', - 'CreditCard' => 'Luottokortti', - 'CreditNote' => 'Luottoluotto', - 'Currency' => '', - 'Date' => 'Päivämäärä', - 'Delivery' => 'Toimitus', - 'DeliveryNote' => 'Saapumisilmoitus', - 'DirectDebit' => 'Suoraveloitus', - 'Discount' => 'Alennus', - 'DiscountP' => 'Alennus %', - 'Due' => 'Takia', - 'Email' => '', - 'Freightage' => 'Rahti', - 'Gross' => 'Ällöttävä', - 'Invoice' => 'Lasku', - 'Item' => 'Kohde', - 'Items' => 'Tuotteet', - 'Language' => '', - 'Log' => 'Hirsi', - 'Logs' => 'Lokit', - 'Media' => 'Media', - 'MoneyTransfer' => 'Rahansiirto', - 'Name' => 'Nimi', - 'Net' => 'Netto', - 'Offer' => 'Tarjous', - 'Original' => '', - 'Payment' => 'Maksu', - 'PaymentPlan' => '', - 'Postal' => 'Posti-', - 'Prepaid' => 'Prepaid', - 'Preview' => 'Esikatselu', - 'Price' => 'Hinta', - 'Profit' => 'Voitto', - 'Quantity' => 'Määrä', - 'Recipient' => 'Vastaanottaja', - 'Select' => 'Valitse', - 'Shipment' => 'Lähetys', - 'Source' => 'Lähde', - 'Supplier' => 'Toimittaja', - 'SupplierID' => 'Toimittajan tunnus', - 'Tax' => 'Verottaa', - 'TermsOfDelivery' => 'Toimitusehdot', - 'Total' => 'Kaikki yhteensä', - 'Type' => 'Tyyppi', - 'Types' => '', - 'Upload' => 'Ladata', - 'Zip' => 'Postinumero', -]]; diff --git a/Theme/Backend/Lang/fr.lang.php b/Theme/Backend/Lang/fr.lang.php deleted file mode 100755 index 87caaf1..0000000 --- a/Theme/Backend/Lang/fr.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adresse', - 'Addresses' => 'Adresses', - 'AlreadyPaid' => 'Déjà payé', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Factures', - 'Bonus' => 'Prime', - 'Cashback' => 'Remise en argent', - 'City' => 'Ville', - 'Client' => 'Client', - 'ClientID' => 'identité du client', - 'Confirmation' => 'Confirmation', - 'Country' => 'Pays', - 'Created' => 'Établi', - 'CreditCard' => 'Carte de crédit', - 'CreditNote' => 'Note de crédit', - 'Currency' => '', - 'Date' => 'Date', - 'Delivery' => 'Livraison', - 'DeliveryNote' => 'Bon de livraison', - 'DirectDebit' => 'Prélèvement automatique', - 'Discount' => 'Remise', - 'DiscountP' => 'Remise %', - 'Due' => 'Dû', - 'Email' => '', - 'Freightage' => 'Fret', - 'Gross' => 'Brut', - 'Invoice' => 'Facture d\'achat', - 'Item' => 'Article', - 'Items' => 'Articles', - 'Language' => '', - 'Log' => 'Enregistrer', - 'Logs' => 'Journaux', - 'Media' => 'Médias', - 'MoneyTransfer' => 'Transfert d\'argent', - 'Name' => 'Nom', - 'Net' => 'Rapporter', - 'Offer' => 'Offrir', - 'Original' => '', - 'Payment' => 'Paiement', - 'PaymentPlan' => '', - 'Postal' => 'Postal', - 'Prepaid' => 'Prépayé', - 'Preview' => 'Aperçu', - 'Price' => 'Prix', - 'Profit' => 'Profit', - 'Quantity' => 'Quantité', - 'Recipient' => 'Destinataire', - 'Select' => 'Sélectionner', - 'Shipment' => 'Expédition', - 'Source' => 'La source', - 'Supplier' => 'Fournisseur', - 'SupplierID' => 'ID du fournisseur', - 'Tax' => 'Impôt', - 'TermsOfDelivery' => 'Conditions de livraison', - 'Total' => 'Le total', - 'Type' => 'Taper', - 'Types' => '', - 'Upload' => 'Télécharger', - 'Zip' => 'Zipper', -]]; diff --git a/Theme/Backend/Lang/hu.lang.php b/Theme/Backend/Lang/hu.lang.php deleted file mode 100755 index 67b5a86..0000000 --- a/Theme/Backend/Lang/hu.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Cím', - 'Addresses' => 'Címek', - 'AlreadyPaid' => 'Fizetve', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Számlák', - 'Bonus' => 'Bónusz', - 'Cashback' => 'Pénzvisszafizetés', - 'City' => 'Város', - 'Client' => 'Ügyfél', - 'ClientID' => 'Ügyfélazonosító', - 'Confirmation' => 'Megerősítés', - 'Country' => 'Ország', - 'Created' => 'Létrehozott', - 'CreditCard' => 'Hitelkártya', - 'CreditNote' => 'Jóváírás', - 'Currency' => '', - 'Date' => 'Dátum', - 'Delivery' => 'Szállítás', - 'DeliveryNote' => 'Fuvarlevél', - 'DirectDebit' => 'Megparancsló', - 'Discount' => 'Kedvezmény', - 'DiscountP' => 'Árengedmény%', - 'Due' => 'Esedékes', - 'Email' => '', - 'Freightage' => 'Fuvardíj', - 'Gross' => 'Bruttó', - 'Invoice' => 'Számla', - 'Item' => 'Tétel', - 'Items' => 'Elemek', - 'Language' => '', - 'Log' => 'Napló', - 'Logs' => 'Naplók', - 'Media' => 'Média', - 'MoneyTransfer' => 'Pénz átutalás', - 'Name' => 'Név', - 'Net' => 'Háló', - 'Offer' => 'Ajánlat', - 'Original' => '', - 'Payment' => 'Fizetés', - 'PaymentPlan' => '', - 'Postal' => 'Postai', - 'Prepaid' => 'Előre kifizetett', - 'Preview' => 'Előnézet', - 'Price' => 'Ár', - 'Profit' => 'Nyereség', - 'Quantity' => 'Mennyiség', - 'Recipient' => 'Befogadó', - 'Select' => 'Kiválaszt', - 'Shipment' => 'Szállítmány', - 'Source' => 'Forrás', - 'Supplier' => 'Támogató', - 'SupplierID' => 'Szállítóazonosító', - 'Tax' => 'Adó', - 'TermsOfDelivery' => 'Szállítási feltételek', - 'Total' => 'Teljes', - 'Type' => 'típus', - 'Types' => '', - 'Upload' => 'Feltöltés', - 'Zip' => 'Postai irányítószám', -]]; diff --git a/Theme/Backend/Lang/it.lang.php b/Theme/Backend/Lang/it.lang.php deleted file mode 100755 index 072baed..0000000 --- a/Theme/Backend/Lang/it.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Indirizzo', - 'Addresses' => 'Indirizzi', - 'AlreadyPaid' => 'Già pagato', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Fatture', - 'Bonus' => 'Bonus.', - 'Cashback' => 'Rimborso', - 'City' => 'Città', - 'Client' => 'Cliente', - 'ClientID' => 'Identificativo cliente', - 'Confirmation' => 'Conferma', - 'Country' => 'Nazione', - 'Created' => 'Creato', - 'CreditCard' => 'Carta di credito', - 'CreditNote' => 'Nota di credito', - 'Currency' => '', - 'Date' => 'Data', - 'Delivery' => 'Consegna', - 'DeliveryNote' => 'Bolla d\'accompagnamento', - 'DirectDebit' => 'DirectDebit.', - 'Discount' => 'Sconto', - 'DiscountP' => 'Sconto%', - 'Due' => 'Dovuto', - 'Email' => '', - 'Freightage' => 'Liberare', - 'Gross' => 'Schifoso', - 'Invoice' => 'Fattura', - 'Item' => 'Elemento', - 'Items' => 'Elementi', - 'Language' => '', - 'Log' => 'Tronco d\'albero', - 'Logs' => 'Logs.', - 'Media' => 'Media', - 'MoneyTransfer' => 'Trasferimento di denaro', - 'Name' => 'Nome', - 'Net' => 'Rete', - 'Offer' => 'Offerta', - 'Original' => '', - 'Payment' => 'Pagamento', - 'PaymentPlan' => '', - 'Postal' => 'postale', - 'Prepaid' => 'Prepagato', - 'Preview' => 'Anteprima', - 'Price' => 'Prezzo', - 'Profit' => 'Profitto', - 'Quantity' => 'Quantità', - 'Recipient' => 'Destinatario', - 'Select' => 'Selezionare', - 'Shipment' => 'Spedizione', - 'Source' => 'Fonte', - 'Supplier' => 'Fornitore', - 'SupplierID' => 'ID fornitore', - 'Tax' => 'Imposta', - 'TermsOfDelivery' => 'Termini di consegna', - 'Total' => 'Totale', - 'Type' => 'Tipo', - 'Types' => '', - 'Upload' => 'Caricamento', - 'Zip' => 'Cerniera lampo', -]]; diff --git a/Theme/Backend/Lang/ja.lang.php b/Theme/Backend/Lang/ja.lang.php deleted file mode 100755 index 33b1d1f..0000000 --- a/Theme/Backend/Lang/ja.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => '住所', - 'Addresses' => 'アドレス', - 'AlreadyPaid' => '既に支払いました', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'bill', - 'Bonus' => 'ボーナス', - 'Cashback' => 'キャッシュバック', - 'City' => '市', - 'Client' => 'クライアント', - 'ClientID' => 'クライアントID', - 'Confirmation' => '確認', - 'Country' => '国', - 'Created' => '作成した', - 'CreditCard' => 'クレジットカード', - 'CreditNote' => 'クレジットノート', - 'Currency' => '', - 'Date' => '日にち', - 'Delivery' => '配達', - 'DeliveryNote' => '配達メモ', - 'DirectDebit' => '自動引き落とし', - 'Discount' => '割引', - 'DiscountP' => '割引 %', - 'Due' => '期限', - 'Email' => '', - 'Freightage' => 'fre fre', - 'Gross' => 'きもい', - 'Invoice' => '請求書', - 'Item' => 'アイテム', - 'Items' => 'アイテム', - 'Language' => '', - 'Log' => 'ログ', - 'Logs' => 'ログ', - 'Media' => 'メディア', - 'MoneyTransfer' => '送金', - 'Name' => '名前', - 'Net' => 'ネット', - 'Offer' => 'オファー', - 'Original' => '', - 'Payment' => '支払い', - 'PaymentPlan' => '', - 'Postal' => '郵便', - 'Prepaid' => '前払い', - 'Preview' => 'プレビュー', - 'Price' => '価格', - 'Profit' => '利益', - 'Quantity' => '量', - 'Recipient' => '受信者', - 'Select' => '選択する', - 'Shipment' => '出荷', - 'Source' => 'ソース', - 'Supplier' => 'サプライヤー', - 'SupplierID' => 'サプライヤID', - 'Tax' => '税', - 'TermsOfDelivery' => '引渡条件', - 'Total' => '合計', - 'Type' => 'タイプ', - 'Types' => '', - 'Upload' => 'アップロード', - 'Zip' => 'ジップ', -]]; diff --git a/Theme/Backend/Lang/ko.lang.php b/Theme/Backend/Lang/ko.lang.php deleted file mode 100755 index afb184a..0000000 --- a/Theme/Backend/Lang/ko.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => '주소', - 'Addresses' => '구애', - 'AlreadyPaid' => '이미 지불', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => '청구서', - 'Bonus' => '보너스', - 'Cashback' => '현금', - 'City' => '도시', - 'Client' => '고객', - 'ClientID' => '클라이언트 ID.', - 'Confirmation' => '확인', - 'Country' => '국가', - 'Created' => '만들어진', - 'CreditCard' => '신용 카드', - 'CreditNote' => '신용 노트', - 'Currency' => '', - 'Date' => '날짜', - 'Delivery' => '배달', - 'DeliveryNote' => '배달 메모', - 'DirectDebit' => '자동 이체', - 'Discount' => '할인', - 'DiscountP' => '할인 %', - 'Due' => '로 인한', - 'Email' => '', - 'Freightage' => '화물', - 'Gross' => '역겨운', - 'Invoice' => '송장', - 'Item' => '안건', - 'Items' => '항목', - 'Language' => '', - 'Log' => '통나무', - 'Logs' => '로그인', - 'Media' => '미디어', - 'MoneyTransfer' => '돈 이송', - 'Name' => '이름', - 'Net' => '그물', - 'Offer' => '권하다', - 'Original' => '', - 'Payment' => '지불', - 'PaymentPlan' => '', - 'Postal' => '우편 엽서', - 'Prepaid' => '선불', - 'Preview' => '시사', - 'Price' => '가격', - 'Profit' => '이익', - 'Quantity' => '수량', - 'Recipient' => '받는 사람', - 'Select' => '선택하다', - 'Shipment' => '선적', - 'Source' => '원천', - 'Supplier' => '공급자', - 'SupplierID' => '공급자 ID.', - 'Tax' => '세', - 'TermsOfDelivery' => '배달의 조건', - 'Total' => '총', - 'Type' => '유형', - 'Types' => '', - 'Upload' => '업로드', - 'Zip' => '지퍼', -]]; diff --git a/Theme/Backend/Lang/no.lang.php b/Theme/Backend/Lang/no.lang.php deleted file mode 100755 index e337c9d..0000000 --- a/Theme/Backend/Lang/no.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adresse', - 'Addresses' => 'Adresser', - 'AlreadyPaid' => 'Allerede betalt', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Regninger', - 'Bonus' => 'Bonus', - 'Cashback' => 'Penger tilbake', - 'City' => 'By', - 'Client' => 'Klient', - 'ClientID' => 'klient-ID', - 'Confirmation' => 'Bekreftelse', - 'Country' => 'Land', - 'Created' => 'Opprettet', - 'CreditCard' => 'Kredittkort', - 'CreditNote' => 'Kredittnota', - 'Currency' => '', - 'Date' => 'Dato', - 'Delivery' => 'Leveranse', - 'DeliveryNote' => 'Leveringsnotat', - 'DirectDebit' => 'DirectDebit', - 'Discount' => 'Rabatt', - 'DiscountP' => 'Rabatt%', - 'Due' => 'På grunn av det', - 'Email' => '', - 'Freightage' => 'Frakt', - 'Gross' => 'Ekkelt', - 'Invoice' => 'Faktura', - 'Item' => 'Punkt', - 'Items' => 'Elementer', - 'Language' => '', - 'Log' => 'Logg', - 'Logs' => 'Tømmerstokker', - 'Media' => 'Media', - 'MoneyTransfer' => 'Pengeoverføring', - 'Name' => 'Navn', - 'Net' => 'Nett', - 'Offer' => 'By på', - 'Original' => '', - 'Payment' => 'innbetaling', - 'PaymentPlan' => '', - 'Postal' => 'Postal.', - 'Prepaid' => 'Forhåndsbetalt', - 'Preview' => 'Forhåndsvisning', - 'Price' => 'Pris', - 'Profit' => 'Profitt', - 'Quantity' => 'Mengde', - 'Recipient' => 'Mottaker', - 'Select' => 'Plukke ut', - 'Shipment' => 'Forsendelse', - 'Source' => 'Kilde', - 'Supplier' => 'Leverandør', - 'SupplierID' => 'Leverandør ID.', - 'Tax' => 'Avgift', - 'TermsOfDelivery' => 'Leveringsvilkår', - 'Total' => 'Total', - 'Type' => 'Type', - 'Types' => '', - 'Upload' => 'Laste opp', - 'Zip' => 'Glidelås', -]]; diff --git a/Theme/Backend/Lang/pl.lang.php b/Theme/Backend/Lang/pl.lang.php deleted file mode 100755 index 8fa2223..0000000 --- a/Theme/Backend/Lang/pl.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adres', - 'Addresses' => 'Adresy', - 'AlreadyPaid' => 'Już zapłacone', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Rachunki', - 'Bonus' => 'Premia', - 'Cashback' => 'Zwrot gotówki', - 'City' => 'Miasto', - 'Client' => 'Klient', - 'ClientID' => 'Identyfikator klienta', - 'Confirmation' => 'Potwierdzenie', - 'Country' => 'Kraj', - 'Created' => 'Utworzony', - 'CreditCard' => 'Karta kredytowa', - 'CreditNote' => 'Uwaga kredytowa', - 'Currency' => '', - 'Date' => 'Data', - 'Delivery' => 'Dostawa', - 'DeliveryNote' => 'Dowód dostawy', - 'DirectDebit' => 'Polecenie zapłaty', - 'Discount' => 'Zniżka', - 'DiscountP' => 'Zniżka %', - 'Due' => 'Z powodu', - 'Email' => '', - 'Freightage' => 'Frachtowanie', - 'Gross' => 'Brutto', - 'Invoice' => 'Faktura', - 'Item' => 'Przedmiot', - 'Items' => 'Przedmiotów', - 'Language' => '', - 'Log' => 'Dziennik', - 'Logs' => 'Kłody', - 'Media' => 'Głoska bezdźwięczna', - 'MoneyTransfer' => 'Transfer pieniędzy', - 'Name' => 'Nazwa', - 'Net' => 'Internet', - 'Offer' => 'Oferta', - 'Original' => '', - 'Payment' => 'Zapłata', - 'PaymentPlan' => '', - 'Postal' => 'Pocztowy', - 'Prepaid' => 'Opłacony z góry', - 'Preview' => 'Zapowiedź', - 'Price' => 'Cena £', - 'Profit' => 'Zysk', - 'Quantity' => 'Ilość', - 'Recipient' => 'Odbiorca', - 'Select' => 'Wybierać', - 'Shipment' => 'Wysyłka', - 'Source' => 'Źródło', - 'Supplier' => 'Dostawca', - 'SupplierID' => 'identyfikator dostawcy', - 'Tax' => 'Podatek', - 'TermsOfDelivery' => 'Warunki dostarczenia', - 'Total' => 'Całkowity', - 'Type' => 'Rodzaj', - 'Types' => '', - 'Upload' => 'Wgrywać', - 'Zip' => 'Zamek błyskawiczny', -]]; diff --git a/Theme/Backend/Lang/pt.lang.php b/Theme/Backend/Lang/pt.lang.php deleted file mode 100755 index 7fd6f35..0000000 --- a/Theme/Backend/Lang/pt.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Endereço', - 'Addresses' => 'Endereços', - 'AlreadyPaid' => 'Já pago', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Notas', - 'Bonus' => 'Bônus', - 'Cashback' => 'Dinheiro de volta', - 'City' => 'Cidade', - 'Client' => 'Cliente', - 'ClientID' => 'ID do Cliente', - 'Confirmation' => 'Confirmação', - 'Country' => 'País', - 'Created' => 'Criado', - 'CreditCard' => 'Cartão de crédito', - 'CreditNote' => 'Nota de crédito', - 'Currency' => '', - 'Date' => 'Encontro', - 'Delivery' => 'Entrega', - 'DeliveryNote' => 'Nota de entrega', - 'DirectDebit' => 'Débito Direto', - 'Discount' => 'Desconto', - 'DiscountP' => 'Desconto%', - 'Due' => 'Vencimento', - 'Email' => '', - 'Freightage' => 'Freightage', - 'Gross' => 'Bruto', - 'Invoice' => 'Fatura', - 'Item' => 'Item', - 'Items' => 'Itens', - 'Language' => '', - 'Log' => 'Registro', - 'Logs' => 'Histórico', - 'Media' => 'meios de comunicação', - 'MoneyTransfer' => 'Transferência de dinheiro', - 'Name' => 'Nome', - 'Net' => 'Internet', - 'Offer' => 'Oferta', - 'Original' => '', - 'Payment' => 'Pagamento', - 'PaymentPlan' => '', - 'Postal' => 'Postal', - 'Prepaid' => 'Pré-pago', - 'Preview' => 'Pré-visualização', - 'Price' => 'Preço', - 'Profit' => 'Lucro', - 'Quantity' => 'Quantidade', - 'Recipient' => 'Destinatário', - 'Select' => 'Selecione.', - 'Shipment' => 'envio', - 'Source' => 'Fonte', - 'Supplier' => 'Fornecedor', - 'SupplierID' => 'Identificação do Fornecedor', - 'Tax' => 'Imposto', - 'TermsOfDelivery' => 'Termos de entrega', - 'Total' => 'Total', - 'Type' => 'Modelo', - 'Types' => '', - 'Upload' => 'Envio', - 'Zip' => 'Fecho eclair', -]]; diff --git a/Theme/Backend/Lang/ru.lang.php b/Theme/Backend/Lang/ru.lang.php deleted file mode 100755 index a71b5b5..0000000 --- a/Theme/Backend/Lang/ru.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Адрес', - 'Addresses' => 'Адреса', - 'AlreadyPaid' => 'Уже оплачено', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Счета', - 'Bonus' => 'Бонус', - 'Cashback' => 'Возврат наличных', - 'City' => 'Город', - 'Client' => 'Клиент', - 'ClientID' => 'ID клиента', - 'Confirmation' => 'Подтверждение', - 'Country' => 'Страна', - 'Created' => 'Созданный', - 'CreditCard' => 'Кредитная карта', - 'CreditNote' => 'Кредитная нота', - 'Currency' => '', - 'Date' => 'Дата', - 'Delivery' => 'Доставка', - 'DeliveryNote' => 'Накладная', - 'DirectDebit' => 'DirectDebit.', - 'Discount' => 'Скидка', - 'DiscountP' => 'Скидка %', - 'Due' => 'Должное', - 'Email' => '', - 'Freightage' => 'Фрахты', - 'Gross' => 'Валовой', - 'Invoice' => 'Счет', - 'Item' => 'Пункт', - 'Items' => 'Предметы', - 'Language' => '', - 'Log' => 'Бревно', - 'Logs' => 'Журналы', - 'Media' => 'Средства массовой информации', - 'MoneyTransfer' => 'Перевод денег', - 'Name' => 'Имя', - 'Net' => 'Сеть', - 'Offer' => 'Предложение', - 'Original' => '', - 'Payment' => 'Оплата', - 'PaymentPlan' => '', - 'Postal' => 'Почтовый', - 'Prepaid' => 'Предоплаты', - 'Preview' => 'Превью', - 'Price' => 'Цена', - 'Profit' => 'Выгода', - 'Quantity' => 'Количество', - 'Recipient' => 'Получатель', - 'Select' => 'Выбирать', - 'Shipment' => 'Отгрузка', - 'Source' => 'Источник', - 'Supplier' => 'Поставщик', - 'SupplierID' => 'ID поставщик', - 'Tax' => 'Налог', - 'TermsOfDelivery' => 'Условия доставки', - 'Total' => 'Всего', - 'Type' => 'Тип', - 'Types' => '', - 'Upload' => 'Загрузить', - 'Zip' => 'Zip.', -]]; diff --git a/Theme/Backend/Lang/sv.lang.php b/Theme/Backend/Lang/sv.lang.php deleted file mode 100755 index 1a0d370..0000000 --- a/Theme/Backend/Lang/sv.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adress', - 'Addresses' => 'Adresser', - 'AlreadyPaid' => 'Redan betalat', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Räkningar', - 'Bonus' => 'Bonus', - 'Cashback' => 'Pengar tillbaka', - 'City' => 'Stad', - 'Client' => 'Klient', - 'ClientID' => 'Klient ID', - 'Confirmation' => 'Bekräftelse', - 'Country' => 'Land', - 'Created' => 'Skapad', - 'CreditCard' => 'Kreditkort', - 'CreditNote' => 'Kreditanteckning', - 'Currency' => '', - 'Date' => 'Datum', - 'Delivery' => 'Leverans', - 'DeliveryNote' => 'Leveransanteckning', - 'DirectDebit' => 'Direktbetalning', - 'Discount' => 'Rabatt', - 'DiscountP' => 'Rabatt%', - 'Due' => 'På grund av', - 'Email' => '', - 'Freightage' => 'Frakt', - 'Gross' => 'Äckligt', - 'Invoice' => 'Faktura', - 'Item' => 'Artikel', - 'Items' => 'Objekt', - 'Language' => '', - 'Log' => 'Logga', - 'Logs' => 'Loggar', - 'Media' => 'Media', - 'MoneyTransfer' => 'Pengaöverföring', - 'Name' => 'namn', - 'Net' => 'Netto', - 'Offer' => 'Erbjudande', - 'Original' => '', - 'Payment' => 'Betalning', - 'PaymentPlan' => '', - 'Postal' => 'Post', - 'Prepaid' => 'Förbetalt', - 'Preview' => 'Förhandsvisning', - 'Price' => 'Pris', - 'Profit' => 'Vinst', - 'Quantity' => 'Kvantitet', - 'Recipient' => 'Mottagare', - 'Select' => 'Välj', - 'Shipment' => 'Sändning', - 'Source' => 'Källa', - 'Supplier' => 'Leverantör', - 'SupplierID' => 'Leverantörs-ID', - 'Tax' => 'Beskatta', - 'TermsOfDelivery' => 'Leveransvillkor', - 'Total' => 'Total', - 'Type' => 'Typ', - 'Types' => '', - 'Upload' => 'Ladda upp', - 'Zip' => 'Blixtlås', -]]; diff --git a/Theme/Backend/Lang/th.lang.php b/Theme/Backend/Lang/th.lang.php deleted file mode 100755 index 076704f..0000000 --- a/Theme/Backend/Lang/th.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'ที่อยู่', - 'Addresses' => 'ที่อยู่', - 'AlreadyPaid' => 'จ่ายแล้ว', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'การเรียกเก็บเงิน', - 'Bonus' => 'โบนัส', - 'Cashback' => 'เงินคืน', - 'City' => 'เมือง', - 'Client' => 'ลูกค้า', - 'ClientID' => 'รหัสลูกค้า', - 'Confirmation' => 'การยืนยัน', - 'Country' => 'ประเทศ', - 'Created' => 'สร้าง', - 'CreditCard' => 'บัตรเครดิต', - 'CreditNote' => 'ใบลดหนี้', - 'Currency' => '', - 'Date' => 'วันที่', - 'Delivery' => 'จัดส่ง', - 'DeliveryNote' => 'บันทึกการส่งมอบ', - 'DirectDebit' => 'การหักบัญชีธนาคาร', - 'Discount' => 'การลดราคา', - 'DiscountP' => 'การลดราคา %', - 'Due' => 'เนื่องจาก', - 'Email' => '', - 'Freightage' => 'การขนส่งสินค้า', - 'Gross' => 'ทั้งหมด', - 'Invoice' => 'ใบแจ้งหนี้', - 'Item' => 'สิ่งของ', - 'Items' => 'รายการ', - 'Language' => '', - 'Log' => 'บันทึก', - 'Logs' => 'การบันทึก', - 'Media' => 'สื่อ', - 'MoneyTransfer' => 'การโอนเงิน', - 'Name' => 'ชื่อ', - 'Net' => 'สุทธิ', - 'Offer' => 'เสนอ', - 'Original' => '', - 'Payment' => 'การชำระเงิน', - 'PaymentPlan' => '', - 'Postal' => 'เกี่ยวกับการไปรษณีย์', - 'Prepaid' => 'ชำระล่วงหน้า', - 'Preview' => 'ดูตัวอย่าง', - 'Price' => 'ราคา', - 'Profit' => 'กำไร', - 'Quantity' => 'ปริมาณ', - 'Recipient' => 'ผู้รับ', - 'Select' => 'เลือก', - 'Shipment' => 'การจัดส่ง', - 'Source' => 'แหล่งที่มา', - 'Supplier' => 'ผู้ผลิต', - 'SupplierID' => 'ID ผู้จัดหา', - 'Tax' => 'ภาษี', - 'TermsOfDelivery' => 'เงื่อนไขการส่งสินค้า', - 'Total' => 'ทั้งหมด', - 'Type' => 'พิมพ์', - 'Types' => '', - 'Upload' => 'ที่อัพโหลด', - 'Zip' => 'ซิป', -]]; diff --git a/Theme/Backend/Lang/tr.lang.php b/Theme/Backend/Lang/tr.lang.php deleted file mode 100755 index 7782978..0000000 --- a/Theme/Backend/Lang/tr.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Adres', - 'Addresses' => 'Adresler', - 'AlreadyPaid' => 'Zaten ödendi', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Faturalar', - 'Bonus' => 'Bonus', - 'Cashback' => 'Nakit para', - 'City' => 'Şehir', - 'Client' => 'Müşteri', - 'ClientID' => 'Müşteri Kimliği', - 'Confirmation' => 'Onayla', - 'Country' => 'Ülke', - 'Created' => 'Yaratılmış', - 'CreditCard' => 'Kredi kartı', - 'CreditNote' => 'Kredi notu', - 'Currency' => '', - 'Date' => 'Tarih', - 'Delivery' => 'Teslimat', - 'DeliveryNote' => 'Teslimat notu', - 'DirectDebit' => 'Otomatik ödeme', - 'Discount' => 'İndirim', - 'DiscountP' => 'İndirim %', - 'Due' => 'Vadesi dolmuş', - 'Email' => '', - 'Freightage' => 'Yük', - 'Gross' => 'Brüt', - 'Invoice' => 'Fatura', - 'Item' => 'Kalem', - 'Items' => 'Öğeler', - 'Language' => '', - 'Log' => 'Kayıt', - 'Logs' => 'Kütükler', - 'Media' => 'Medya', - 'MoneyTransfer' => 'Para transferi', - 'Name' => 'İsim', - 'Net' => 'Ağ', - 'Offer' => 'Teklif', - 'Original' => '', - 'Payment' => 'Ödeme', - 'PaymentPlan' => '', - 'Postal' => 'Posta', - 'Prepaid' => 'Ön ödemeli', - 'Preview' => 'Ön izleme', - 'Price' => 'Fiyat', - 'Profit' => 'Kâr', - 'Quantity' => 'Miktar', - 'Recipient' => 'Alıcı', - 'Select' => 'Seçme', - 'Shipment' => 'gönderi', - 'Source' => 'Kaynak', - 'Supplier' => 'Tedarikçi', - 'SupplierID' => 'tedarikçi kimliği', - 'Tax' => 'Vergi', - 'TermsOfDelivery' => 'Teslimat şartları', - 'Total' => 'Toplam', - 'Type' => 'Tip', - 'Types' => '', - 'Upload' => 'Yüklemek', - 'Zip' => 'Zip', -]]; diff --git a/Theme/Backend/Lang/uk.lang.php b/Theme/Backend/Lang/uk.lang.php deleted file mode 100755 index f543a17..0000000 --- a/Theme/Backend/Lang/uk.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => 'Адреса', - 'Addresses' => 'Адреси', - 'AlreadyPaid' => 'Вже оплачено', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => 'Векселі', - 'Bonus' => 'Бонус', - 'Cashback' => 'Готівка', - 'City' => 'Місто', - 'Client' => 'Клієнт', - 'ClientID' => 'Ідентифікатор клієнта', - 'Confirmation' => 'Підтвердження', - 'Country' => 'Країна', - 'Created' => 'Створений', - 'CreditCard' => 'Кредитна карта', - 'CreditNote' => 'Кредитове авізо', - 'Currency' => '', - 'Date' => 'Дата', - 'Delivery' => 'Доставка', - 'DeliveryNote' => 'Накладна', - 'DirectDebit' => 'Прямий дебет', - 'Discount' => 'Знижка', - 'DiscountP' => 'Знижка%', - 'Due' => 'Заборгованість', - 'Email' => '', - 'Freightage' => 'Фрахт', - 'Gross' => 'Валовий', - 'Invoice' => 'Рахунок-фактура', - 'Item' => 'Елемент', - 'Items' => 'Предмети', - 'Language' => '', - 'Log' => 'Журнал', - 'Logs' => 'Журнали', - 'Media' => 'Медіа', - 'MoneyTransfer' => 'Грошовий переказ', - 'Name' => 'Назва', - 'Net' => 'Сітка', - 'Offer' => 'Пропозиція', - 'Original' => '', - 'Payment' => 'Платіж', - 'PaymentPlan' => '', - 'Postal' => 'Поштовий', - 'Prepaid' => 'Передплачений', - 'Preview' => 'Попередній перегляд', - 'Price' => 'Ціна', - 'Profit' => 'Прибуток', - 'Quantity' => 'Кількість', - 'Recipient' => 'Одержувач', - 'Select' => 'Вибирати', - 'Shipment' => 'Відвантаження', - 'Source' => 'Джерело', - 'Supplier' => 'Постачальник', - 'SupplierID' => 'Ідентифікатор постачальника', - 'Tax' => 'Оподаткування', - 'TermsOfDelivery' => 'Умови поставки', - 'Total' => 'Загальний', - 'Type' => 'Тип', - 'Types' => '', - 'Upload' => 'Завантажувати', - 'Zip' => 'Блиск', -]]; diff --git a/Theme/Backend/Lang/zh.lang.php b/Theme/Backend/Lang/zh.lang.php deleted file mode 100755 index 96506e9..0000000 --- a/Theme/Backend/Lang/zh.lang.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - 'Address' => '地址', - 'Addresses' => '地址', - 'AlreadyPaid' => '已付款', - 'Amount' => '', - 'Archive' => '', - 'Billing' => '', - 'Bills' => '账单', - 'Bonus' => '奖金', - 'Cashback' => '返现金', - 'City' => '城市', - 'Client' => '客户', - 'ClientID' => '客户ID', - 'Confirmation' => '确认', - 'Country' => '国家', - 'Created' => '创造了', - 'CreditCard' => '信用卡', - 'CreditNote' => '信用票据', - 'Currency' => '', - 'Date' => '日期', - 'Delivery' => '交货', - 'DeliveryNote' => '送货单', - 'DirectDebit' => 'DirectDebit.', - 'Discount' => '折扣', - 'DiscountP' => '折扣 %', - 'Due' => '到期的', - 'Email' => '', - 'Freightage' => 'FRIGUTAGE.', - 'Gross' => '总的', - 'Invoice' => '发票', - 'Item' => '物品', - 'Items' => '项目', - 'Language' => '', - 'Log' => '日志', - 'Logs' => '日志', - 'Media' => '媒体', - 'MoneyTransfer' => '汇款', - 'Name' => '名称', - 'Net' => '网', - 'Offer' => '提供', - 'Original' => '', - 'Payment' => '支付', - 'PaymentPlan' => '', - 'Postal' => '邮政', - 'Prepaid' => '预付款', - 'Preview' => '预览', - 'Price' => '价格', - 'Profit' => '利润', - 'Quantity' => '数量', - 'Recipient' => '接受者', - 'Select' => '选择', - 'Shipment' => '运输', - 'Source' => '来源', - 'Supplier' => '供应商', - 'SupplierID' => '供应商ID', - 'Tax' => '税', - 'TermsOfDelivery' => '递送条款', - 'Total' => '全部的', - 'Type' => '类型', - 'Types' => '', - 'Upload' => '上传', - 'Zip' => '压缩', -]]; diff --git a/tests/Models/BillElementTest.php b/tests/Models/BillElementTest.php index b81bd98..5fc39a6 100755 --- a/tests/Models/BillElementTest.php +++ b/tests/Models/BillElementTest.php @@ -16,6 +16,8 @@ namespace Modules\Billing\tests\Models; use Modules\Billing\Models\BillElement; use Modules\Billing\Models\NullBill; +use Modules\ItemManagement\Models\NullItem; +use phpOMS\Stdlib\Base\FloatInt; /** * @internal @@ -52,7 +54,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase public function testItemInputOutput() : void { $this->element->setItem(123); - self::assertEquals(123, $this->element->item); + self::assertEquals(123, $this->element->item->id); } /** @@ -62,7 +64,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase public function testSerialize() : void { $this->element->order = 2; - $this->element->item = 3; + $this->element->item = new NullItem(3); $this->element->itemNumber = '123456'; $this->element->itemName = 'Test'; $this->element->itemDescription = 'Description'; @@ -77,7 +79,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase 'itemNumber' => '123456', 'itemName' => 'Test', 'itemDescription' => 'Description', - 'quantity' => 4, + 'quantity' => new FloatInt(4), 'bill' => $this->element->bill, ], $this->element->jsonSerialize() diff --git a/tests/Models/BillTest.php b/tests/Models/BillTest.php index 1851f5b..8c670e9 100755 --- a/tests/Models/BillTest.php +++ b/tests/Models/BillTest.php @@ -40,7 +40,6 @@ final class BillTest extends \PHPUnit\Framework\TestCase { self::assertEquals(0, $this->bill->id); self::assertEquals('', $this->bill->number); - self::assertEquals('', $this->bill->referralName); self::assertEquals('', $this->bill->info); self::assertInstanceOf('\Modules\Billing\Models\NullBillType', $this->bill->type); self::assertInstanceOf('\DateTimeImmutable', $this->bill->createdAt); @@ -66,12 +65,8 @@ final class BillTest extends \PHPUnit\Framework\TestCase self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->netSales); self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->grossSales); - self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->netProfit); - self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->grossProfit); - self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->netCosts); - self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->grossCosts); self::assertEquals(0, $this->bill->payment); self::assertEquals('', $this->bill->paymentText); @@ -129,6 +124,7 @@ final class BillTest extends \PHPUnit\Framework\TestCase 'billCity' => 'City', 'billZip' => 'Zip', 'billCountry' => 'Country', + 'external' => '', ], $this->bill->jsonSerialize() ); diff --git a/tests/Models/InvoiceRecognitionTest.php b/tests/Models/InvoiceRecognitionTest.php index 9559fb0..747f420 100644 --- a/tests/Models/InvoiceRecognitionTest.php +++ b/tests/Models/InvoiceRecognitionTest.php @@ -28,6 +28,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase { /** * @dataProvider billList + * @group maybe */ public function testNetSales($json, $content) : void { @@ -41,6 +42,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testTaxRate($json, $content) : void { @@ -54,6 +56,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testGrossSales($json, $content) : void { @@ -67,6 +70,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testTaxAmount($json, $content) : void { @@ -80,6 +84,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testBillDate($json, $content) : void { @@ -93,6 +98,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testBillLanguage($json, $content) : void { @@ -106,6 +112,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testBillCurrency($json, $content) : void { @@ -119,6 +126,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testIban($json, $content) : void { @@ -148,6 +156,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testVATId($json, $content) : void { @@ -177,6 +186,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testTaxId($json, $content) : void { @@ -206,6 +216,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testWebsite($json, $content) : void { @@ -235,6 +246,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testEmail($json, $content) : void { @@ -264,6 +276,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase /** * @dataProvider billList + * @group maybe */ public function testPhone($json, $content) : void { From 5917c262f04918e5408e0dae196aaa33a7702a8e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Mar 2024 03:00:24 +0000 Subject: [PATCH 2/3] fix tests --- README.md | 4 +-- composer.json | 10 +++---- .../Controller/Api/ApiBillControllerTrait.php | 4 +-- tests/Models/BillElementTest.php | 6 ++-- tests/Models/BillTest.php | 6 ++-- tests/Models/BillTypeTest.php | 4 +-- tests/Models/NullBillElementTest.php | 6 ++-- tests/Models/NullBillTest.php | 6 ++-- tests/Models/NullBillTypeTest.php | 6 ++-- tests/Models/NullSubscriptionTest.php | 6 ++-- tests/Models/Price/NullPriceTest.php | 6 ++-- tests/Models/PurchaseBillMapperTest.php | 26 ++++++++--------- tests/Models/SalesBillMapperTest.php | 28 +++++++++---------- tests/Models/StockBillMapperTest.php | 4 +-- tests/Models/Tax/NullTaxCombinationTest.php | 6 ++-- 15 files changed, 64 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index 4cb40c2..51f9ea4 100755 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio ## Requirements -* PHP 8.1 -* PHP extension: php8.1-dev php8.1-cli php8.1-common php8.1-mysql php8.1-pgsql php8.1-xdebug php8.1-opcache php8.1-pdo php8.1-sqlite php8.1-mbstring php8.1-curl php8.1-imap php8.1-bcmath php8.1-zip php8.1-dom php8.1-xml php8.1-phar php8.1-gd php-pear +* PHP 8.2 +* PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear * apache2 (recommended) or nginx * mysql-server (recommended) or postgresql postgresql-contrib * Tools: tesseract-ocr, pdftotext, pdftoppm diff --git a/composer.json b/composer.json index 2e47a08..7bd5508 100755 --- a/composer.json +++ b/composer.json @@ -8,15 +8,15 @@ } ], "require-dev": { - "phpunit/phpunit": ">=9.4", - "friendsofphp/php-cs-fixer": ">=3.8", - "squizlabs/php_codesniffer": ">=3.6", + "phpunit/phpunit": ">=11.0", + "friendsofphp/php-cs-fixer": ">=3.51", + "squizlabs/php_codesniffer": ">=3.7", "phpmd/phpmd": ">=2.9", - "phpstan/phpstan": ">=1.8.6", + "phpstan/phpstan": ">=1.10.62", "phan/phan": ">=3.2.6", "phploc/phploc": ">=7.0", "phpmetrics/phpmetrics": ">=2.8", - "rector/rector": ">=0.18.0" + "rector/rector": ">=1.0.3" }, "minimum-stability": "dev", "prefer-stable": true diff --git a/tests/Controller/Api/ApiBillControllerTrait.php b/tests/Controller/Api/ApiBillControllerTrait.php index a170765..2c33e8b 100644 --- a/tests/Controller/Api/ApiBillControllerTrait.php +++ b/tests/Controller/Api/ApiBillControllerTrait.php @@ -100,7 +100,7 @@ trait ApiBillControllerTrait } /** - * @covers Modules\Billing\Controller\ApiController + * @covers \Modules\Billing\Controller\ApiController * @group module */ public function testBillCreateInvalidData() : void @@ -116,7 +116,7 @@ trait ApiBillControllerTrait } /** - * @covers Modules\Billing\Controller\ApiController + * @covers \Modules\Billing\Controller\ApiController * @group module */ public function testBillElementCreateInvalidData() : void diff --git a/tests/Models/BillElementTest.php b/tests/Models/BillElementTest.php index 5fc39a6..96fac05 100755 --- a/tests/Models/BillElementTest.php +++ b/tests/Models/BillElementTest.php @@ -35,7 +35,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\BillElement + * @covers \Modules\Billing\Models\BillElement * @group module */ public function testDefault() : void @@ -48,7 +48,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\BillElement + * @covers \Modules\Billing\Models\BillElement * @group module */ public function testItemInputOutput() : void @@ -58,7 +58,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\BillElement + * @covers \Modules\Billing\Models\BillElement * @group module */ public function testSerialize() : void diff --git a/tests/Models/BillTest.php b/tests/Models/BillTest.php index 8c670e9..89f37d5 100755 --- a/tests/Models/BillTest.php +++ b/tests/Models/BillTest.php @@ -33,7 +33,7 @@ final class BillTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Bill + * @covers \Modules\Billing\Models\Bill * @group module */ public function testDefault() : void @@ -77,7 +77,7 @@ final class BillTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Bill + * @covers \Modules\Billing\Models\Bill * @group module */ public function testNumberRendering() : void @@ -87,7 +87,7 @@ final class BillTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Bill + * @covers \Modules\Billing\Models\Bill * @group module */ public function testSerialize() : void diff --git a/tests/Models/BillTypeTest.php b/tests/Models/BillTypeTest.php index 2e7596f..a9c1625 100755 --- a/tests/Models/BillTypeTest.php +++ b/tests/Models/BillTypeTest.php @@ -33,7 +33,7 @@ final class BillTypeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\BillType + * @covers \Modules\Billing\Models\BillType * @group module */ public function testDefault() : void @@ -43,7 +43,7 @@ final class BillTypeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\BillType + * @covers \Modules\Billing\Models\BillType * @group module */ public function testL11nInputOutput() : void diff --git a/tests/Models/NullBillElementTest.php b/tests/Models/NullBillElementTest.php index 3f919ce..8c14a51 100755 --- a/tests/Models/NullBillElementTest.php +++ b/tests/Models/NullBillElementTest.php @@ -22,7 +22,7 @@ use Modules\Billing\Models\NullBillElement; final class NullBillElementTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\NullBillElement + * @covers \Modules\Billing\Models\NullBillElement * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullBillElementTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullBillElement + * @covers \Modules\Billing\Models\NullBillElement * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullBillElementTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullBillElement + * @covers \Modules\Billing\Models\NullBillElement * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullBillTest.php b/tests/Models/NullBillTest.php index c7031e9..f46f06e 100755 --- a/tests/Models/NullBillTest.php +++ b/tests/Models/NullBillTest.php @@ -22,7 +22,7 @@ use Modules\Billing\Models\NullBill; final class NullBillTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\NullBill + * @covers \Modules\Billing\Models\NullBill * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullBillTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullBill + * @covers \Modules\Billing\Models\NullBill * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullBillTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullBill + * @covers \Modules\Billing\Models\NullBill * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullBillTypeTest.php b/tests/Models/NullBillTypeTest.php index 9a76209..ff620d5 100755 --- a/tests/Models/NullBillTypeTest.php +++ b/tests/Models/NullBillTypeTest.php @@ -22,7 +22,7 @@ use Modules\Billing\Models\NullBillType; final class NullBillTypeTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\NullBillType + * @covers \Modules\Billing\Models\NullBillType * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullBillTypeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullBillType + * @covers \Modules\Billing\Models\NullBillType * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullBillTypeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullBillType + * @covers \Modules\Billing\Models\NullBillType * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullSubscriptionTest.php b/tests/Models/NullSubscriptionTest.php index c5efdf4..13673b5 100644 --- a/tests/Models/NullSubscriptionTest.php +++ b/tests/Models/NullSubscriptionTest.php @@ -22,7 +22,7 @@ use Modules\Billing\Models\NullSubscription; final class NullSubscriptionTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\NullSubscription + * @covers \Modules\Billing\Models\NullSubscription * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullSubscriptionTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullSubscription + * @covers \Modules\Billing\Models\NullSubscription * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullSubscriptionTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\NullSubscription + * @covers \Modules\Billing\Models\NullSubscription * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/Price/NullPriceTest.php b/tests/Models/Price/NullPriceTest.php index e667445..af5b1f9 100644 --- a/tests/Models/Price/NullPriceTest.php +++ b/tests/Models/Price/NullPriceTest.php @@ -22,7 +22,7 @@ use Modules\Billing\Models\Price\NullPrice; final class NullPriceTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\Price\NullPrice + * @covers \Modules\Billing\Models\Price\NullPrice * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullPriceTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Price\NullPrice + * @covers \Modules\Billing\Models\Price\NullPrice * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullPriceTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Price\NullPrice + * @covers \Modules\Billing\Models\Price\NullPrice * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/PurchaseBillMapperTest.php b/tests/Models/PurchaseBillMapperTest.php index 8e05e3d..f1d1933 100755 --- a/tests/Models/PurchaseBillMapperTest.php +++ b/tests/Models/PurchaseBillMapperTest.php @@ -24,7 +24,7 @@ use Modules\Billing\Models\PurchaseBillMapper; final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetPurchaseBeforePivotInvalid() : void @@ -33,7 +33,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetPurchaseAfterPivotInvalid() : void @@ -42,7 +42,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetPurchaseByItemIdInvalid() : void @@ -51,7 +51,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetPurchaseBySupplierIdInvalid() : void @@ -60,7 +60,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetAvgPurchasePriceByItemIdInvalid() : void @@ -69,7 +69,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetLastOrderDateByItemIdInvalid() : void @@ -78,7 +78,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetLastOrderDateBySupplierIdInvalid() : void @@ -87,7 +87,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetNewestItemInvoicesInvalid() : void @@ -96,7 +96,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetNewestSupplierInvoicesInvalid() : void @@ -105,7 +105,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetItemTopSuppliersInvalid() : void @@ -114,7 +114,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetItemCountryPurchaseInvalid() : void @@ -123,7 +123,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetItemMonthlyPurchaseCostsInvalid() : void @@ -132,7 +132,7 @@ final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\PurchaseBillMapper + * @covers \Modules\Billing\Models\PurchaseBillMapper * @group module */ public function testGetSupplierMonthlyPurchaseCostsInvalid() : void diff --git a/tests/Models/SalesBillMapperTest.php b/tests/Models/SalesBillMapperTest.php index fa0f343..cfa8287 100755 --- a/tests/Models/SalesBillMapperTest.php +++ b/tests/Models/SalesBillMapperTest.php @@ -24,7 +24,7 @@ use Modules\Billing\Models\SalesBillMapper; final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetSalesBeforePivotInvalid() : void @@ -33,7 +33,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetSalesAfterPivotInvalid() : void @@ -42,7 +42,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetSalesByItemIdInvalid() : void @@ -51,7 +51,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetSalesByClientIdInvalid() : void @@ -60,7 +60,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetLastOrderDateByItemIdInvalid() : void @@ -69,7 +69,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetLastOrderDateByClientIdInvalid() : void @@ -78,7 +78,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetNewestItemInvoicesInvalid() : void @@ -87,7 +87,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetNewestClientInvoicesInvalid() : void @@ -96,7 +96,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetItemTopClientsInvalid() : void @@ -105,7 +105,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetItemBillsInvalid() : void @@ -114,7 +114,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetClientItem() : void @@ -123,7 +123,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetItemCountrySalesInvalid() : void @@ -132,7 +132,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetItemMonthlySalesCostsInvalid() : void @@ -141,7 +141,7 @@ final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\SalesBillMapper + * @covers \Modules\Billing\Models\SalesBillMapper * @group module */ public function testGetClientMonthlySalesCostsInvalid() : void diff --git a/tests/Models/StockBillMapperTest.php b/tests/Models/StockBillMapperTest.php index 0df0bf1..4d28e81 100755 --- a/tests/Models/StockBillMapperTest.php +++ b/tests/Models/StockBillMapperTest.php @@ -24,7 +24,7 @@ use Modules\Billing\Models\StockBillMapper; final class StockBillMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\StockBillMapper + * @covers \Modules\Billing\Models\StockBillMapper * @group module */ public function testGetStockBeforePivotInvalid() : void @@ -33,7 +33,7 @@ final class StockBillMapperTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\StockBillMapper + * @covers \Modules\Billing\Models\StockBillMapper * @group module */ public function testGetStockAfterPivotInvalid() : void diff --git a/tests/Models/Tax/NullTaxCombinationTest.php b/tests/Models/Tax/NullTaxCombinationTest.php index bb033a2..392d048 100644 --- a/tests/Models/Tax/NullTaxCombinationTest.php +++ b/tests/Models/Tax/NullTaxCombinationTest.php @@ -22,7 +22,7 @@ use Modules\Billing\Models\Tax\NullTaxCombination; final class NullTaxCombinationTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Billing\Models\Tax\NullTaxCombination + * @covers \Modules\Billing\Models\Tax\NullTaxCombination * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullTaxCombinationTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Tax\NullTaxCombination + * @covers \Modules\Billing\Models\Tax\NullTaxCombination * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullTaxCombinationTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Billing\Models\Tax\NullTaxCombination + * @covers \Modules\Billing\Models\Tax\NullTaxCombination * @group module */ public function testJsonSerialize() : void From 7520fdfde7849ce2c013e0320c9529f5d00dc53d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Mar 2024 05:15:59 +0000 Subject: [PATCH 3/3] upgrade phpunit --- .../Controller/Api/ApiBillControllerTrait.php | 4 +- tests/Controller/ApiControllerTest.php | 3 +- tests/Models/BillElementTest.php | 16 +--- tests/Models/BillTest.php | 16 +--- tests/Models/BillTypeTest.php | 11 +-- tests/Models/InvoiceRecognitionTest.php | 80 +++++++------------ tests/Models/NullBillElementTest.php | 16 +--- tests/Models/NullBillTest.php | 16 +--- tests/Models/NullBillTypeTest.php | 16 +--- tests/Models/NullSubscriptionTest.php | 16 +--- tests/Models/Price/NullPriceTest.php | 16 +--- tests/Models/PurchaseBillMapperTest.php | 69 ++++------------ tests/Models/SalesBillMapperTest.php | 74 ++++------------- tests/Models/StockBillMapperTest.php | 14 +--- tests/Models/Tax/NullTaxCombinationTest.php | 16 +--- tests/phpunit_default.xml | 56 ++++++------- 16 files changed, 129 insertions(+), 310 deletions(-) diff --git a/tests/Controller/Api/ApiBillControllerTrait.php b/tests/Controller/Api/ApiBillControllerTrait.php index 2c33e8b..1670cbf 100644 --- a/tests/Controller/Api/ApiBillControllerTrait.php +++ b/tests/Controller/Api/ApiBillControllerTrait.php @@ -101,8 +101,8 @@ trait ApiBillControllerTrait /** * @covers \Modules\Billing\Controller\ApiController - * @group module */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testBillCreateInvalidData() : void { $response = new HttpResponse(); @@ -117,8 +117,8 @@ trait ApiBillControllerTrait /** * @covers \Modules\Billing\Controller\ApiController - * @group module */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testBillElementCreateInvalidData() : void { $response = new HttpResponse(); diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 710f6de..cb71db9 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -31,10 +31,9 @@ use phpOMS\Router\WebRouter; use phpOMS\Utils\TestUtils; /** - * @testdox Modules\tests\Billing\Controller\ApiControllerTest: Billing api controller - * * @internal */ +#[\PHPUnit\Framework\Attributes\TestDox('Modules\tests\Billing\Controller\ApiControllerTest: Billing api controller')] final class ApiControllerTest extends \PHPUnit\Framework\TestCase { protected ApplicationAbstract $app; diff --git a/tests/Models/BillElementTest.php b/tests/Models/BillElementTest.php index 96fac05..063025f 100755 --- a/tests/Models/BillElementTest.php +++ b/tests/Models/BillElementTest.php @@ -22,6 +22,7 @@ use phpOMS\Stdlib\Base\FloatInt; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\BillElement::class)] final class BillElementTest extends \PHPUnit\Framework\TestCase { private BillElement $element; @@ -34,10 +35,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase $this->element = new BillElement(); } - /** - * @covers \Modules\Billing\Models\BillElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testDefault() : void { self::assertEquals(0, $this->element->id); @@ -47,20 +45,14 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->element->totalPurchasePriceNet); } - /** - * @covers \Modules\Billing\Models\BillElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testItemInputOutput() : void { $this->element->setItem(123); self::assertEquals(123, $this->element->item->id); } - /** - * @covers \Modules\Billing\Models\BillElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testSerialize() : void { $this->element->order = 2; diff --git a/tests/Models/BillTest.php b/tests/Models/BillTest.php index 89f37d5..504ec9e 100755 --- a/tests/Models/BillTest.php +++ b/tests/Models/BillTest.php @@ -20,6 +20,7 @@ use Modules\Billing\Models\NullBillType; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\Bill::class)] final class BillTest extends \PHPUnit\Framework\TestCase { private Bill $bill; @@ -32,10 +33,7 @@ final class BillTest extends \PHPUnit\Framework\TestCase $this->bill = new Bill(); } - /** - * @covers \Modules\Billing\Models\Bill - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testDefault() : void { self::assertEquals(0, $this->bill->id); @@ -76,20 +74,14 @@ final class BillTest extends \PHPUnit\Framework\TestCase self::assertEquals('', $this->bill->shippingText); } - /** - * @covers \Modules\Billing\Models\Bill - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNumberRendering() : void { $this->bill->type->numberFormat = '{y}{m}{d}-{id}'; self::assertEquals(\date('Y') . \date('m') . \date('d') . '-0', $this->bill->getNumber()); } - /** - * @covers \Modules\Billing\Models\Bill - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testSerialize() : void { $this->bill->number = '123456'; diff --git a/tests/Models/BillTypeTest.php b/tests/Models/BillTypeTest.php index a9c1625..708904a 100755 --- a/tests/Models/BillTypeTest.php +++ b/tests/Models/BillTypeTest.php @@ -20,6 +20,7 @@ use phpOMS\Localization\BaseStringL11n; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\BillType::class)] final class BillTypeTest extends \PHPUnit\Framework\TestCase { private BillType $type; @@ -32,20 +33,14 @@ final class BillTypeTest extends \PHPUnit\Framework\TestCase $this->type = new BillType(); } - /** - * @covers \Modules\Billing\Models\BillType - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testDefault() : void { self::assertEquals(0, $this->type->id); self::assertTrue($this->type->transferStock); } - /** - * @covers \Modules\Billing\Models\BillType - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testL11nInputOutput() : void { $this->type->setL11n('Test1'); diff --git a/tests/Models/InvoiceRecognitionTest.php b/tests/Models/InvoiceRecognitionTest.php index 747f420..1bc79f6 100644 --- a/tests/Models/InvoiceRecognitionTest.php +++ b/tests/Models/InvoiceRecognitionTest.php @@ -26,10 +26,8 @@ require_once __DIR__ . '/../Autoloader.php'; */ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase { - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testNetSales($json, $content) : void { $billObj = new Bill(); @@ -40,10 +38,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['netSales'], $billObj->netSales->value); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testTaxRate($json, $content) : void { $billObj = new Bill(); @@ -54,10 +50,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['tax_rate'], \reset($billObj->elements)->taxR->value); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testGrossSales($json, $content) : void { $billObj = new Bill(); @@ -68,10 +62,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['grossSales'], $billObj->grossSales->value); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testTaxAmount($json, $content) : void { $billObj = new Bill(); @@ -82,10 +74,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['tax_amount'], $billObj->taxP->value); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testBillDate($json, $content) : void { $billObj = new Bill(); @@ -96,10 +86,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['bill_date'], $billObj->billDate?->format('Y-m-d')); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testBillLanguage($json, $content) : void { $billObj = new Bill(); @@ -110,10 +98,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['language'], $billObj->language); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testBillCurrency($json, $content) : void { $billObj = new Bill(); @@ -124,10 +110,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase self::assertEquals($test['currency'], $billObj->currency); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testIban($json, $content) : void { $identifierContent = \file_get_contents(__DIR__ . '/../../Models/bill_identifier.json'); @@ -154,10 +138,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase ); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testVATId($json, $content) : void { $identifierContent = \file_get_contents(__DIR__ . '/../../Models/bill_identifier.json'); @@ -184,10 +166,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase ); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testTaxId($json, $content) : void { $identifierContent = \file_get_contents(__DIR__ . '/../../Models/bill_identifier.json'); @@ -214,10 +194,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase ); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testWebsite($json, $content) : void { $identifierContent = \file_get_contents(__DIR__ . '/../../Models/bill_identifier.json'); @@ -244,10 +222,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase ); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testEmail($json, $content) : void { $identifierContent = \file_get_contents(__DIR__ . '/../../Models/bill_identifier.json'); @@ -274,10 +250,8 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase ); } - /** - * @dataProvider billList - * @group maybe - */ + #[\PHPUnit\Framework\Attributes\DataProvider('billList')] + #[\PHPUnit\Framework\Attributes\Group('maybe')] public function testPhone($json, $content) : void { $identifierContent = \file_get_contents(__DIR__ . '/../../Models/bill_identifier.json'); @@ -306,7 +280,7 @@ final class InvoiceRecognitionTest extends \PHPUnit\Framework\TestCase public static array $billList = []; - public function billList() + public static function billList() { /* if (\str_ends_with(__DIR__ . '/bills/12.png', 'pdf')) { diff --git a/tests/Models/NullBillElementTest.php b/tests/Models/NullBillElementTest.php index 8c14a51..e75ec1b 100755 --- a/tests/Models/NullBillElementTest.php +++ b/tests/Models/NullBillElementTest.php @@ -19,31 +19,23 @@ use Modules\Billing\Models\NullBillElement; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\NullBillElement::class)] final class NullBillElementTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\NullBillElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Billing\Models\BillElement', new NullBillElement()); } - /** - * @covers \Modules\Billing\Models\NullBillElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullBillElement(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Billing\Models\NullBillElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullBillElement(2); diff --git a/tests/Models/NullBillTest.php b/tests/Models/NullBillTest.php index f46f06e..668e6e1 100755 --- a/tests/Models/NullBillTest.php +++ b/tests/Models/NullBillTest.php @@ -19,31 +19,23 @@ use Modules\Billing\Models\NullBill; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\NullBill::class)] final class NullBillTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\NullBill - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Billing\Models\Bill', new NullBill()); } - /** - * @covers \Modules\Billing\Models\NullBill - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullBill(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Billing\Models\NullBill - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullBill(2); diff --git a/tests/Models/NullBillTypeTest.php b/tests/Models/NullBillTypeTest.php index ff620d5..5c3b9f4 100755 --- a/tests/Models/NullBillTypeTest.php +++ b/tests/Models/NullBillTypeTest.php @@ -19,31 +19,23 @@ use Modules\Billing\Models\NullBillType; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\NullBillType::class)] final class NullBillTypeTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\NullBillType - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Billing\Models\BillType', new NullBillType()); } - /** - * @covers \Modules\Billing\Models\NullBillType - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullBillType(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Billing\Models\NullBillType - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullBillType(2); diff --git a/tests/Models/NullSubscriptionTest.php b/tests/Models/NullSubscriptionTest.php index 13673b5..27efe39 100644 --- a/tests/Models/NullSubscriptionTest.php +++ b/tests/Models/NullSubscriptionTest.php @@ -19,31 +19,23 @@ use Modules\Billing\Models\NullSubscription; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\NullSubscription::class)] final class NullSubscriptionTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\NullSubscription - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Billing\Models\Subscription', new NullSubscription()); } - /** - * @covers \Modules\Billing\Models\NullSubscription - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullSubscription(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Billing\Models\NullSubscription - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullSubscription(2); diff --git a/tests/Models/Price/NullPriceTest.php b/tests/Models/Price/NullPriceTest.php index af5b1f9..b39e0d7 100644 --- a/tests/Models/Price/NullPriceTest.php +++ b/tests/Models/Price/NullPriceTest.php @@ -19,31 +19,23 @@ use Modules\Billing\Models\Price\NullPrice; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\Price\NullPrice::class)] final class NullPriceTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\Price\NullPrice - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Billing\Models\Price\Price', new NullPrice()); } - /** - * @covers \Modules\Billing\Models\Price\NullPrice - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullPrice(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Billing\Models\Price\NullPrice - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullPrice(2); diff --git a/tests/Models/PurchaseBillMapperTest.php b/tests/Models/PurchaseBillMapperTest.php index f1d1933..abf52fe 100755 --- a/tests/Models/PurchaseBillMapperTest.php +++ b/tests/Models/PurchaseBillMapperTest.php @@ -17,124 +17,85 @@ namespace Modules\Billing\tests\Models; use Modules\Billing\Models\PurchaseBillMapper; /** - * @testdox Modules\Billing\tests\Models\PurchaseBillMapperTest: App database mapper - * * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\PurchaseBillMapper::class)] +#[\PHPUnit\Framework\Attributes\TestDox('Modules\Billing\tests\Models\PurchaseBillMapperTest: App database mapper')] final class PurchaseBillMapperTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetPurchaseBeforePivotInvalid() : void { self::assertEquals([], PurchaseBillMapper::getPurchaseBeforePivot(-1)); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetPurchaseAfterPivotInvalid() : void { self::assertEquals([], PurchaseBillMapper::getPurchaseAfterPivot(99999)); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetPurchaseByItemIdInvalid() : void { self::assertEquals(0, PurchaseBillMapper::getPurchaseByItemId(99999, new \DateTime('now'), new \DateTime('now'))->getInt()); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetPurchaseBySupplierIdInvalid() : void { self::assertEquals(0, PurchaseBillMapper::getPurchaseBySupplierId(99999, new \DateTime('now'), new \DateTime('now'))->getInt()); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetAvgPurchasePriceByItemIdInvalid() : void { self::assertEquals(0, PurchaseBillMapper::getAvgPurchasePriceByItemId(99999, new \DateTime('now'), new \DateTime('now'))->getInt()); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetLastOrderDateByItemIdInvalid() : void { self::assertNull(PurchaseBillMapper::getLastOrderDateByItemId(99999)); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetLastOrderDateBySupplierIdInvalid() : void { self::assertNull(PurchaseBillMapper::getLastOrderDateBySupplierId(99999)); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetNewestItemInvoicesInvalid() : void { self::assertEquals([], PurchaseBillMapper::getNewestItemInvoices(99999)); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetNewestSupplierInvoicesInvalid() : void { self::assertEquals([], PurchaseBillMapper::getNewestSupplierInvoices(99999)); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemTopSuppliersInvalid() : void { self::assertEquals([[], []], PurchaseBillMapper::getItemTopSuppliers(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemCountryPurchaseInvalid() : void { self::assertEquals([], PurchaseBillMapper::getItemCountryPurchase(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemMonthlyPurchaseCostsInvalid() : void { self::assertEquals([], PurchaseBillMapper::getItemMonthlyPurchaseCosts(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\PurchaseBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetSupplierMonthlyPurchaseCostsInvalid() : void { self::assertEquals([], PurchaseBillMapper::getSupplierMonthlyPurchaseCosts(99999, new \DateTime('now'), new \DateTime('now'))); diff --git a/tests/Models/SalesBillMapperTest.php b/tests/Models/SalesBillMapperTest.php index cfa8287..0929f9e 100755 --- a/tests/Models/SalesBillMapperTest.php +++ b/tests/Models/SalesBillMapperTest.php @@ -17,133 +17,91 @@ namespace Modules\Billing\tests\Models; use Modules\Billing\Models\SalesBillMapper; /** - * @testdox Modules\Billing\tests\Models\SalesBillMapperTest: App database mapper - * * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\SalesBillMapper::class)] +#[\PHPUnit\Framework\Attributes\TestDox('Modules\Billing\tests\Models\SalesBillMapperTest: App database mapper')] final class SalesBillMapperTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetSalesBeforePivotInvalid() : void { self::assertEquals([], SalesBillMapper::getSalesBeforePivot(-1)); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetSalesAfterPivotInvalid() : void { self::assertEquals([], SalesBillMapper::getSalesAfterPivot(99999)); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetSalesByItemIdInvalid() : void { self::assertEquals(0, SalesBillMapper::getSalesByItemId(99999, new \DateTime('now'), new \DateTime('now'))->getInt()); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetSalesByClientIdInvalid() : void { self::assertEquals(0, SalesBillMapper::getSalesByClientId(99999, new \DateTime('now'), new \DateTime('now'))->getInt()); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetLastOrderDateByItemIdInvalid() : void { self::assertNull(SalesBillMapper::getLastOrderDateByItemId(99999)); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetLastOrderDateByClientIdInvalid() : void { self::assertNull(SalesBillMapper::getLastOrderDateByClientId(99999)); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetNewestItemInvoicesInvalid() : void { self::assertEquals([], SalesBillMapper::getNewestItemInvoices(99999)); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetNewestClientInvoicesInvalid() : void { self::assertEquals([], SalesBillMapper::getNewestClientInvoices(99999)); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemTopClientsInvalid() : void { self::assertEquals([[], []], SalesBillMapper::getItemTopClients(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemBillsInvalid() : void { self::assertEquals([], SalesBillMapper::getItemBills(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetClientItem() : void { self::assertEquals([], SalesBillMapper::getClientItem(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemCountrySalesInvalid() : void { self::assertEquals([], SalesBillMapper::getItemCountrySales(99999, new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetItemMonthlySalesCostsInvalid() : void { self::assertEquals([], SalesBillMapper::getItemMonthlySalesCosts([99999], new \DateTime('now'), new \DateTime('now'))); } - /** - * @covers \Modules\Billing\Models\SalesBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetClientMonthlySalesCostsInvalid() : void { self::assertEquals([], SalesBillMapper::getClientMonthlySalesCosts(99999, new \DateTime('now'), new \DateTime('now'))); diff --git a/tests/Models/StockBillMapperTest.php b/tests/Models/StockBillMapperTest.php index 4d28e81..f23c4e4 100755 --- a/tests/Models/StockBillMapperTest.php +++ b/tests/Models/StockBillMapperTest.php @@ -17,25 +17,19 @@ namespace Modules\Billing\tests\Models; use Modules\Billing\Models\StockBillMapper; /** - * @testdox Modules\Billing\tests\Models\StockBillMapperTest: App database mapper - * * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\StockBillMapper::class)] +#[\PHPUnit\Framework\Attributes\TestDox('Modules\Billing\tests\Models\StockBillMapperTest: App database mapper')] final class StockBillMapperTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\StockBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetStockBeforePivotInvalid() : void { self::assertEquals([], StockBillMapper::getStockBeforePivot(-1)); } - /** - * @covers \Modules\Billing\Models\StockBillMapper - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetStockAfterPivotInvalid() : void { self::assertEquals([], StockBillMapper::getStockAfterPivot(99999)); diff --git a/tests/Models/Tax/NullTaxCombinationTest.php b/tests/Models/Tax/NullTaxCombinationTest.php index 392d048..62e331d 100644 --- a/tests/Models/Tax/NullTaxCombinationTest.php +++ b/tests/Models/Tax/NullTaxCombinationTest.php @@ -19,31 +19,23 @@ use Modules\Billing\Models\Tax\NullTaxCombination; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Billing\Models\Tax\NullTaxCombination::class)] final class NullTaxCombinationTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Billing\Models\Tax\NullTaxCombination - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Billing\Models\Tax\TaxCombination', new NullTaxCombination()); } - /** - * @covers \Modules\Billing\Models\Tax\NullTaxCombination - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullTaxCombination(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Billing\Models\Tax\NullTaxCombination - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullTaxCombination(2); diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index d350430..e4a5639 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -1,31 +1,6 @@ - - - - ../ - - - ../vendor* - ../MainRepository* - ../Karaka* - ../Admin/Install/Application* - ../phpOMS* - ../tests* - ../*/tests* - ../**/tests* - */tests* - ../* - ../* - ../* - ../* - ../* - ../**/test* - ../**/Theme* - ../**/Admin/Routes* - ../**/Admin/Hooks* - ../**/Admin/Install* - ../Media/Files* - + + @@ -56,4 +31,31 @@ + + + ../ + + + ../vendor* + ../MainRepository* + ../Karaka* + ../Admin/Install/Application* + ../phpOMS* + ../tests* + ../*/tests* + ../**/tests* + */tests* + ../* + ../* + ../* + ../* + ../* + ../**/test* + ../**/Theme* + ../**/Admin/Routes* + ../**/Admin/Hooks* + ../**/Admin/Install* + ../Media/Files* + +