From 5edb2ea7d11492cc1ea87b760e99c3a6b125a2fd 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 --- 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..52555a3e86 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; +# $not->{content},"The patron for interlibrary loans request " . $illrq_obj->id . ", with the following details, has requested cancellation of this ILL request:\n\n-author:myauthor\n-title:mytitle", + 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.20.1