From 870abad3ed9fe379e1432b2f19257900f18b021e Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 27 May 2024 14:43:41 +0000 Subject: [PATCH] Bug 34838: (QA follow-up): TypeDisclaimer tests - Add 'type' to request metadata This adds a type to the request (mocking it as a new ILL request of type journal being submitted) --- t/db_dependent/Illrequest/TypeDisclaimer.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Illrequest/TypeDisclaimer.t b/t/db_dependent/Illrequest/TypeDisclaimer.t index d24734e002..b910f2c9da 100755 --- a/t/db_dependent/Illrequest/TypeDisclaimer.t +++ b/t/db_dependent/Illrequest/TypeDisclaimer.t @@ -37,7 +37,8 @@ use_ok('Koha::ILL::Request::Workflow::TypeDisclaimer'); my $metadata = { title => 'This is a title', - author => 'This is an author' + author => 'This is an author', + type => 'journal' }; # Because hashes can reorder themselves, we need to make sure ours is in a @@ -54,7 +55,7 @@ isa_ok( $type_disclaimer, 'Koha::ILL::Request::Workflow::TypeDisclaimer' ); is( $type_disclaimer->prep_metadata($sorted), -'eyJhdXRob3IiOiJUaGlzIGlzIGFuIGF1dGhvciIsInRpdGxlIjoiVGhpcyBpcyBhIHRpdGxlIn0%3D%0A', +'eyJhdXRob3IiOiJUaGlzIGlzIGFuIGF1dGhvciIsInRpdGxlIjoiVGhpcyBpcyBhIHRpdGxlIiwi%0AdHlwZSI6ImpvdXJuYWwifQ%3D%3D%0A', 'prep_metadata works' ); -- 2.39.2