Lines 94-102
subtest 'item' => sub {
Link Here
|
94 |
is( $item->itemnumber, $item_1->itemnumber, 'Koha::Checkout->item should return the correct item' ); |
94 |
is( $item->itemnumber, $item_1->itemnumber, 'Koha::Checkout->item should return the correct item' ); |
95 |
}; |
95 |
}; |
96 |
|
96 |
|
97 |
$retrieved_checkout_1->delete; |
|
|
98 |
is( Koha::Checkouts->search->count, $nb_of_checkouts + 1, 'Delete should have deleted the checkout' ); |
99 |
|
100 |
subtest 'patron' => sub { |
97 |
subtest 'patron' => sub { |
101 |
plan tests => 3; |
98 |
plan tests => 3; |
102 |
my $patron = $builder->build_object({class=>'Koha::Patrons', value => {branchcode => $library->{branchcode}}}); |
99 |
my $patron = $builder->build_object({class=>'Koha::Patrons', value => {branchcode => $library->{branchcode}}}); |
Lines 125-130
subtest 'patron' => sub {
Link Here
|
125 |
); |
122 |
); |
126 |
}; |
123 |
}; |
127 |
|
124 |
|
|
|
125 |
$retrieved_checkout_1->delete; |
126 |
is( Koha::Checkouts->search->count, $nb_of_checkouts + 1, 'Delete should have deleted the checkout' ); |
127 |
|
128 |
subtest 'issuer' => sub { |
128 |
subtest 'issuer' => sub { |
129 |
plan tests => 3; |
129 |
plan tests => 3; |
130 |
my $patron = $builder->build_object({class=>'Koha::Patrons', value => {branchcode => $library->{branchcode}}}); |
130 |
my $patron = $builder->build_object({class=>'Koha::Patrons', value => {branchcode => $library->{branchcode}}}); |
131 |
- |
|
|