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:
Jonathan Druart 2018-02-27 11:40:13 -03:00
parent 670712e57c
commit ae9a246840

View file

@ -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");