projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 15548: Move new patron related code to Patron*
[koha.git]
/
t
/
db_dependent
/
Circulation
/
AnonymiseIssueHistory.t
diff --git
a/t/db_dependent/Circulation/AnonymiseIssueHistory.t
b/t/db_dependent/Circulation/AnonymiseIssueHistory.t
index
5735f86
..
f6ab089
100644
(file)
--- a/
t/db_dependent/Circulation/AnonymiseIssueHistory.t
+++ b/
t/db_dependent/Circulation/AnonymiseIssueHistory.t
@@
-203,7
+203,7
@@
subtest 'Test StoreLastBorrower' => sub {
$item_object = Koha::Items->find( $item->{itemnumber} );
$patron_object = $item_object->last_returned_by();
$item_object = Koha::Items->find( $item->{itemnumber} );
$patron_object = $item_object->last_returned_by();
- is( ref($patron_object), 'Koha::
Borrower', 'Koha::Item::last_returned_by returned Koha::Borrower
' );
+ is( ref($patron_object), 'Koha::
Patron', 'Koha::Item::last_returned_by returned Koha::Patron
' );
$patron = $builder->build(
{
$patron = $builder->build(
{
@@
-234,7
+234,7
@@
subtest 'Test StoreLastBorrower' => sub {
value => { privacy => 1, }
}
);
value => { privacy => 1, }
}
);
- $patron_object = Koha::
Borrower
s->find( $patron->{borrowernumber} );
+ $patron_object = Koha::
Patron
s->find( $patron->{borrowernumber} );
$item_object->last_returned_by($patron_object);
$item_object = Koha::Items->find( $item->{itemnumber} );
$item_object->last_returned_by($patron_object);
$item_object = Koha::Items->find( $item->{itemnumber} );