Bug 19979: ->count can be called directly on Koha::Objects

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-02-27 11:40:13 -03:00 committed by Nick Clemens
parent 254684c3ed
commit f20b91d61b
1 changed files with 2 additions and 2 deletions

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