From 043f1b532fa034c3e67a33a4dd027d6158b92b02 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 23 Mar 2021 11:14:37 -0300 Subject: [PATCH] Bug 28023: Regression tests Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit ad55a2b4d820d914ad398224a62633f6df1e1d8a) Signed-off-by: Fridolin Somers --- t/Koha/Email.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Koha/Email.t b/t/Koha/Email.t index 6955a3d678..b7a171986a 100755 --- a/t/Koha/Email.t +++ b/t/Koha/Email.t @@ -53,7 +53,7 @@ subtest 'create() tests' => sub { is( $email->email->header('To'), 'to@example.com', 'Value set correctly' ); is( $email->email->header('Cc'), 'cc@example.com', 'Value set correctly' ); is( $email->email->header('Bcc'), 'bcc@example.com', 'Value set correctly' ); - is( $email->email->header('ReplyTo'), 'reply_to@example.com', 'Value set correctly' ); + is( $email->email->header('Reply-To'), 'reply_to@example.com', 'Value set correctly' ); is( $email->email->header('Sender'), 'sender@example.com', 'Value set correctly' ); is( $email->email->header('Subject'), 'Some subject', 'Value set correctly' ); is( $email->email->header('X-Mailer'), 'Koha', 'Value set correctly' ); @@ -80,7 +80,7 @@ subtest 'create() tests' => sub { is( $email->email->header('To'), 'catchall@example.com', 'SendAllEmailsTo overloads any address' ); is( $email->email->header('Cc'), undef, 'SendAllEmailsTo overloads any address' ); is( $email->email->header('Bcc'), undef, 'SendAllEmailsTo overloads any address' ); - is( $email->email->header('ReplyTo'), 'replytodefault@example.com', 'ReplytoDefault picked when replyto not passed' ); + is( $email->email->header('Reply-To'), 'replytodefault@example.com', 'ReplytoDefault picked when replyto not passed' ); is( $email->email->header('Sender'), 'returnpathdefault@example.com', 'ReturnpathDefault picked when sender not passed' ); is( $email->email->header('Subject'), '', 'No subject passed, empty string' ); is( $email->email->body, $text_body, "Body set correctly" ); -- 2.39.5