From 09b66a8035c23bb9430e0a4675a5ccb54f9cfac1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 30 Jul 2021 15:52:18 +0000 Subject: [PATCH] Bug 28340: Unit test Signed-off-by: Nick Clemens JD amended patch: remove commented line Signed-off-by: Jonathan Druart --- t/db_dependent/Illrequests.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t index 24ef726f96..2fa89337f0 100755 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -714,7 +714,7 @@ subtest 'Backend core methods' => sub { subtest 'Helpers' => sub { - plan tests => 20; + plan tests => 21; $schema->storage->txn_begin; @@ -882,6 +882,12 @@ subtest 'Helpers' => sub { $not->{title} eq 'Interlibrary loan request cancelled', 'Correct title return from get_notice' ); + $not->{content} =~ s/\s//g; + + is( + $not->{content},"Thepatronforinterlibraryloansrequest" . $illrq_obj->id . ",withthefollowingdetails,hasrequestedcancellationofthisILLrequest:-author:myauthor-title:mytitle", + 'Correct content returned from get_notice with metadata correctly ordered' + ); $schema->storage->txn_rollback; }; -- 2.39.5