Lines 86-93
subtest fill_holds_at_checkout => sub {
Link Here
|
86 |
is( ref $transaction, "C4::SIP::ILS::Transaction::Checkout", "New transaction created" ); |
86 |
is( ref $transaction, "C4::SIP::ILS::Transaction::Checkout", "New transaction created" ); |
87 |
is( $transaction->patron( $sip_patron ), $sip_patron, "Patron assigned to transaction" ); |
87 |
is( $transaction->patron( $sip_patron ), $sip_patron, "Patron assigned to transaction" ); |
88 |
is( $transaction->item( $sip_item ), $sip_item, "Item assigned to transaction" ); |
88 |
is( $transaction->item( $sip_item ), $sip_item, "Item assigned to transaction" ); |
89 |
$transaction->do_checkout(); |
89 |
my $checkout = $transaction->do_checkout(); |
90 |
is( $bib->holds->count(), 1, "Bib has 1 holds remaining"); |
90 |
use Data::Printer colored => 1; # Temporary debug statement |
|
|
91 |
is( $bib->holds->count(), 1, "Bib has 1 holds remaining") or diag p $checkout; |
91 |
|
92 |
|
92 |
t::lib::Mocks::mock_preference('itemBarcodeInputFilter', 'whitespace'); |
93 |
t::lib::Mocks::mock_preference('itemBarcodeInputFilter', 'whitespace'); |
93 |
$sip_item = C4::SIP::ILS::Item->new( ' barcode 4 test '); |
94 |
$sip_item = C4::SIP::ILS::Item->new( ' barcode 4 test '); |
94 |
- |
|
|