Lines 126-132
subtest cancel_hold => sub {
Link Here
|
126 |
}; |
126 |
}; |
127 |
|
127 |
|
128 |
subtest checkout => sub { |
128 |
subtest checkout => sub { |
129 |
plan tests => 1; |
129 |
plan tests => 4; |
130 |
|
130 |
|
131 |
my $library = $builder->build_object ({ class => 'Koha::Libraries' }); |
131 |
my $library = $builder->build_object ({ class => 'Koha::Libraries' }); |
132 |
my $patron = $builder->build_object( |
132 |
my $patron = $builder->build_object( |
Lines 170-175
subtest checkout => sub {
Link Here
|
170 |
|
170 |
|
171 |
is( $transaction->{screen_msg},"Item already checked out to you: renewing item.","We get a success message when issue is renewed"); |
171 |
is( $transaction->{screen_msg},"Item already checked out to you: renewing item.","We get a success message when issue is renewed"); |
172 |
|
172 |
|
|
|
173 |
$checkout->discard_changes(); |
173 |
is( $checkout->renewals, 1, "Renewals has been reduced"); |
174 |
is( $checkout->renewals, 1, "Renewals has been reduced"); |
174 |
}; |
175 |
}; |
175 |
|
176 |
|
176 |
- |
|
|