From 7ae673c286489d59410c793d4b69a671a7cd11ee Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 9 May 2023 11:49:48 +0000 Subject: [PATCH] Bug 32894: (QA follow-up) Fix tests Signed-off-by: Nick Clemens (cherry picked from commit 4d613494abef955c41479b2e0269481e73b99176) Signed-off-by: Martin Renvoize (cherry picked from commit bf5ccb47fd54065ed5039cb4ce0c3b9877c565fd) Signed-off-by: Matt Blenkinsop --- t/db_dependent/Holds.t | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/t/db_dependent/Holds.t b/t/db_dependent/Holds.t index c5c79b1d76..22f63a0981 100755 --- a/t/db_dependent/Holds.t +++ b/t/db_dependent/Holds.t @@ -7,7 +7,7 @@ use t::lib::TestBuilder; use C4::Context; -use Test::More tests => 76; +use Test::More tests => 73; use Test::Exception; use MARC::Record; @@ -117,13 +117,10 @@ my $hold = Koha::Holds->find( $reserve_id ); ok( $hold, "Koha::Holds found the hold" ); my $hold_biblio = $hold->biblio(); ok( $hold_biblio, "Got biblio using biblio() method" ); -ok( $hold_biblio == $hold->biblio(), "biblio method returns stashed biblio" ); my $hold_item = $hold->item(); ok( $hold_item, "Got item using item() method" ); -ok( $hold_item == $hold->item(), "item method returns stashed item" ); my $hold_branch = $hold->branch(); ok( $hold_branch, "Got branch using branch() method" ); -ok( $hold_branch == $hold->branch(), "branch method returns stashed branch" ); my $hold_found = $hold->found(); $hold->set({ found => 'W'})->store(); is( Koha::Holds->waiting()->count(), 1, "Koha::Holds->waiting returns waiting holds" ); -- 2.39.2