From 2ed314a93cb7caba072eaa72d40f901a008151c3 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 --- 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 24ef726f96d..2fa89337f06 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.25.1