Bug 19979: ->count and be called directly on Koha::Objects
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
670712e57c
commit
ae9a246840
1 changed files with 2 additions and 2 deletions
|
@ -866,7 +866,7 @@ if ( $indexing_mode eq 'dom' ) {
|
|||
'label_value' => "Titles" }
|
||||
};
|
||||
delete $expected_facets_info_marc21->{holdingbranch}
|
||||
if Koha::Libraries->search->count == 1;
|
||||
if Koha::Libraries->count == 1;
|
||||
is_deeply( $facets_info, $expected_facets_info_marc21,
|
||||
"_get_facets_info returns the correct data");
|
||||
|
||||
|
@ -962,7 +962,7 @@ sub run_unimarc_search_tests {
|
|||
'label_value' => "Titles" }
|
||||
};
|
||||
delete $expected_facets_info_unimarc->{holdingbranch}
|
||||
if Koha::Libraries->search->count == 1;
|
||||
if Koha::Libraries->count == 1;
|
||||
is_deeply( $facets_info, $expected_facets_info_unimarc,
|
||||
"_get_facets_info returns the correct data");
|
||||
|
||||
|
|
Loading…
Reference in a new issue