@@ -, +, @@ --- t/db_dependent/api/v1/acquisitions_orders.t | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) --- a/t/db_dependent/api/v1/acquisitions_orders.t +++ a/t/db_dependent/api/v1/acquisitions_orders.t @@ -108,14 +108,16 @@ subtest 'list() tests' => sub { subtest 'get() tests' => sub { - plan tests => 6; - - $schema->storage->txn_begin; + plan tests => 3; my $order = $builder->build_object( { class => 'Koha::Acquisition::Orders', - value => { orderstatus => 'new' } + value => { + orderstatus => 'new', + ecost_tax_excluded => 9963405519357589504, + unitprice => 10177559957753600000 + } } ); my $patron = $builder->build_object({ @@ -131,13 +133,6 @@ subtest 'get() tests' => sub { ->json_is( '' => $order->to_api, 'SWAGGER3.3.2' ); my $non_existent_order_id = $order->ordernumber; - $order->delete; - - $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders/" . $non_existent_order_id ) - ->status_is(404) - ->json_is( '/error' => 'Order not found' ); - - $schema->storage->txn_rollback; }; subtest 'add() tests' => sub { --