projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a344907
)
Kosmetik: Inventory-Test
author
Jan Büren
<jan@kivitendo.de>
Thu, 27 Jan 2022 10:53:41 +0000
(11:53 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Thu, 27 Jan 2022 10:56:34 +0000
(11:56 +0100)
t/controllers/csvimport/inventory.t
patch
|
blob
|
history
diff --git
a/t/controllers/csvimport/inventory.t
b/t/controllers/csvimport/inventory.t
index
05f8177
..
346b2dc
100644
(file)
--- a/
t/controllers/csvimport/inventory.t
+++ b/
t/controllers/csvimport/inventory.t
@@
-263,9
+263,8
@@
$inv_obj = SL::DB::Manager::Inventory->find_by(trans_id => $trans_id);
# we expect one entry for one trans_id
is ref $inv_obj, "SL::DB::Inventory", "One inventory object, no array or undef";
# we expect one entry for one trans_id
is ref $inv_obj, "SL::DB::Inventory", "One inventory object, no array or undef";
-is $inv_obj->qty == 30.35, 1, "Valid qty accepted";
-is $inv_obj->comment,
- "Jetzt wirklich", "Valid comment accepted";
+is $inv_obj->qty == 30.35, 1, "Valid qty accepted";
+is $inv_obj->comment, "Jetzt wirklich", "Valid comment accepted";
is $inv_obj->employee_id, 1, "Employee valid";
is ref $inv_obj->shippingdate, 'DateTime', "Valid DateTime for shippingdate";
is $inv_obj->shippingdate, DateTime->today_local, "Default shippingdate set";
is $inv_obj->employee_id, 1, "Employee valid";
is ref $inv_obj->shippingdate, 'DateTime', "Valid DateTime for shippingdate";
is $inv_obj->shippingdate, DateTime->today_local, "Default shippingdate set";