From eb9f1a9eef447961e32a3864c07e81913d9e8dd2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 10 Aug 2021 13:11:42 -0300 Subject: [PATCH] Bug 27944: REQUESTED is the new default status Content-Type: text/plain; charset=utf-8 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy --- t/db_dependent/ArticleRequests.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/ArticleRequests.t b/t/db_dependent/ArticleRequests.t index 3f0ec37cd3..bb4b5f8b8d 100755 --- a/t/db_dependent/ArticleRequests.t +++ b/t/db_dependent/ArticleRequests.t @@ -76,13 +76,13 @@ my $article_request = Koha::ArticleRequest->new( )->store(); my $notify_message = Koha::Notice::Messages->search->next; -is( $notify_message->letter_code, "AR_".Koha::ArticleRequest::Status::Pending); +is( $notify_message->letter_code, "AR_".Koha::ArticleRequest::Status::Requested); # Default AR_PROCESSING template content "Title: <>" like( $notify_message->content, qr{Title: $article_request_title}, 'Values from article_requests table must be fetched for the notification' ); $article_request = Koha::ArticleRequests->find( $article_request->id ); ok( $article_request->id, 'Koha::ArticleRequest created' ); -is( $article_request->status, Koha::ArticleRequest::Status::Pending, 'New article request has status of Open' ); +is( $article_request->status, Koha::ArticleRequest::Status::Requested, 'New article request has status of Open' ); isnt( $article_request->created_on, undef, 'New article request has created_on date set' ); isnt( $article_request->updated_on, undef, 'New article request has updated_on date set' ); -- 2.20.1