|
Lines 17-23
Link Here
|
| 17 |
|
17 |
|
| 18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
| 19 |
|
19 |
|
| 20 |
use Test::More tests => 30; |
20 |
use Test::More tests => 31; |
| 21 |
use DateTime::Duration; |
21 |
use DateTime::Duration; |
| 22 |
|
22 |
|
| 23 |
use t::lib::Mocks; |
23 |
use t::lib::Mocks; |
|
Lines 230-235
like(
Link Here
|
| 230 |
my $stat = $dbh->selectrow_hashref("SELECT * FROM statistics WHERE type = 'renew' AND borrowernumber = ? AND itemnumber = ? AND branch = ?", undef, $borrower_id1, $item_id1, $branchcode_3 ); |
230 |
my $stat = $dbh->selectrow_hashref("SELECT * FROM statistics WHERE type = 'renew' AND borrowernumber = ? AND itemnumber = ? AND branch = ?", undef, $borrower_id1, $item_id1, $branchcode_3 ); |
| 231 |
ok( $stat, "Bug 17781 - 'Improper branchcode set during renewal' still fixed" ); |
231 |
ok( $stat, "Bug 17781 - 'Improper branchcode set during renewal' still fixed" ); |
| 232 |
|
232 |
|
|
|
233 |
#Let's do an opac renewal - whatever branchcode we send should be used |
| 234 |
my $opac_renew_issue = $builder->build({ source=>"Issue",value=>{ |
| 235 |
date_due => '2017-01-01', |
| 236 |
branch => $branchcode_1, |
| 237 |
itype => $itemtype, |
| 238 |
borrowernumber => $borrower_id1 |
| 239 |
} |
| 240 |
}); |
| 241 |
|
| 242 |
my $datedue4 = AddRenewal( $opac_renew_issue->{borrowernumber}, $opac_renew_issue->{itemnumber}, "Stavromula", $datedue1, $daysago10, 1 ); |
| 243 |
|
| 244 |
$stat = $dbh->selectrow_hashref("SELECT * FROM statistics WHERE type = 'renew' AND borrowernumber = ? AND itemnumber = ? AND branch = ?", undef, $opac_renew_issue->{borrowernumber}, $opac_renew_issue->{itemnumber}, "Stavromula" ); |
| 245 |
ok( $stat, "Bug 18572 - 'Bug 18572 - OpacRenewalBranch is now respected" ); |
| 246 |
|
| 247 |
|
| 233 |
|
248 |
|
| 234 |
#Test GetBiblioIssues |
249 |
#Test GetBiblioIssues |
| 235 |
is( GetBiblioIssues(), undef, "GetBiblio Issues without parameters" ); |
250 |
is( GetBiblioIssues(), undef, "GetBiblio Issues without parameters" ); |
| 236 |
- |
|
|