From 8424400fe51baec9a08f7280e16bebc26879f833 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Jul 2023 15:41:40 +0200 Subject: [PATCH] Bug 23336: Fix tests Not sure what we were trying to do, but apparently we only use the keys to generate the id string. How did "please" end up here? --- t/db_dependent/api/v1/checkouts.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/api/v1/checkouts.t b/t/db_dependent/api/v1/checkouts.t index 2e749aa8741..1522e6b0ff8 100755 --- a/t/db_dependent/api/v1/checkouts.t +++ b/t/db_dependent/api/v1/checkouts.t @@ -321,7 +321,7 @@ subtest 'get_availability' => sub { # Needs confirm %needsconfirmation = ( confirm1 => 1, confirm2 => 'please' ); - my $token = Koha::Token->new->generate_jwt( { id => $librarian->id . ":" . $item1_id . ":confirm1:confirm2:please" }); + my $token = Koha::Token->new->generate_jwt( { id => $librarian->id . ":" . $item1_id . ":confirm1:confirm2" }); $t->get_ok( "//$userid:$password@/api/v1/checkouts/availability?item_id=$item1_id&patron_id=$patron_id" )->status_is(200)->json_is( '/blockers' => {} ) @@ -334,7 +334,7 @@ subtest 'get_availability' => sub { { id => $librarian->id . ":" . $item1_id - . ":confirm1:confirm2:please", + . ":confirm1:confirm2", token => $confirmation_token } ), @@ -415,7 +415,7 @@ subtest 'add checkout' => sub { { id => $librarian->id . ":" . $item1_id - . ":confirm1:confirm2:please" + . ":confirm1:confirm2" } ); $t->post_ok( -- 2.25.1