Bug 35994: (QA follow-up) Fix Biblio.t

A follow-up changed orders->cancel a bit. This test assumed to
cancel completed lines here. So we are doing it now with a
direct update to have the original result.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2024-05-10 08:37:32 +00:00 committed by Katrin Fischer
parent cc567cb755
commit 391aeaa9a8
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ subtest '->orders, ->uncancelled_orders and ->acq_status tests' => sub {
is( $biblio->acq_status, 'processing', 'Still processing for presence of new lines' );
$orders->filter_out_cancelled->update( { orderstatus => 'complete' } );
is( $biblio->acq_status, 'acquired', 'Acquired: some complete, rest cancelled' );
$orders->cancel;
$orders->update( { orderstatus => 'cancelled', datecancellationprinted => dt_from_string() } );
is( $biblio->acq_status, 'cancelled', 'Cancelled for only cancelled lines' );
$schema->storage->txn_rollback;