Bug 23927: Add tests

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-11-25 11:53:00 +01:00 committed by Martin Renvoize
parent 04fab26ccc
commit 4d2f766866
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -174,7 +174,7 @@ subtest 'subscription' => sub {
};
subtest 'duplicate_to | add_item' => sub {
plan tests => 2;
plan tests => 3;
$schema->storage->txn_begin;
@ -241,5 +241,12 @@ subtest 'duplicate_to | add_item' => sub {
);
};
subtest 'Regression tests' => sub {
plan tests => 1;
my $duplicated_order = $order_no_sub->duplicate_to($basket_to);
is($duplicated_order->invoiceid, undef, "invoiceid should be set to null for a new duplicated order");
};
$schema->storage->txn_rollback;
};