From 29e4894da2ea8345659e8c7d78e0945b3091811c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 29 Apr 2025 15:35:07 +0000 Subject: [PATCH] Bug 39777: Rollback tests These tests should test an authenticated patron, without the presence of a cardnumber in the metadata (as it is the case in the OPAC form) This is also the reason why we mock_userenv right below this. Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi Edit (tcohen): Tidied the file... --- t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t b/t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t index 86f0f2065ac..12796830b0b 100755 --- a/t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t +++ b/t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t @@ -123,16 +123,14 @@ subtest 'after_request_created' => sub { my $fake_cardnumber = '123456789'; my $metadata = { - title => 'This is a title', - author => 'This is an author', - isbn => $isbn, - cardnumber => $fake_cardnumber, + title => 'This is a title', + author => 'This is an author', + isbn => $isbn, }; my $authenticated_patron = $builder->build_object( { class => 'Koha::Patrons', - value => { cardnumber => $fake_cardnumber } } ); -- 2.49.0