Bug 19979: ->count and be called directly on Koha::Objects
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Feb 2018 14:40:13 +0000 (11:40 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Feb 2018 14:41:21 +0000 (11:41 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Search.t

index ba5e531..a1ec226 100644 (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");