Revision 7495dc83
Von Jan Büren vor fast 3 Jahren hinzugefügt
t/controllers/csvimport/inventory.t | ||
---|---|---|
263 | 263 |
|
264 | 264 |
# we expect one entry for one trans_id |
265 | 265 |
is ref $inv_obj, "SL::DB::Inventory", "One inventory object, no array or undef"; |
266 |
is $inv_obj->qty == 30.35, 1, "Valid qty accepted"; |
|
267 |
is $inv_obj->comment, |
|
268 |
"Jetzt wirklich", "Valid comment accepted"; |
|
266 |
is $inv_obj->qty == 30.35, 1, "Valid qty accepted"; |
|
267 |
is $inv_obj->comment, "Jetzt wirklich", "Valid comment accepted"; |
|
269 | 268 |
is $inv_obj->employee_id, 1, "Employee valid"; |
270 | 269 |
is ref $inv_obj->shippingdate, 'DateTime', "Valid DateTime for shippingdate"; |
271 | 270 |
is $inv_obj->shippingdate, DateTime->today_local, "Default shippingdate set"; |
Auch abrufbar als: Unified diff
Kosmetik: Inventory-Test