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:
parent
04fab26ccc
commit
4d2f766866
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue