From c71e9f1e40607081d60787e8901a2dc28e28c818 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 8 May 2024 13:32:14 +0100 Subject: [PATCH] Bug 31627: (QA follow-up) Tidy test block Signed-off-by: Katrin Fischer --- t/Koha/Email.t | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/t/Koha/Email.t b/t/Koha/Email.t index a9ff4c3be3..5c487e14ed 100755 --- a/t/Koha/Email.t +++ b/t/Koha/Email.t @@ -51,20 +51,20 @@ subtest 'create() tests' => sub { } ); - is( $email->email->header('From'), 'Fróm ', 'Value set correctly' ); - is( $email->email->header('To'), 'Tö ', '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('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' ); - is( $email->email->header('X-Koha-Template-Id'), 1, 'Value set correctly' ); - is( $email->email->header('X-Koha-Message-Id'), 1, 'Value set correctly' ); - is( $email->email->body, $html_body, "Body set correctly" ); - like( $email->email->content_type, qr|text/html|, "Content type set correctly"); - like( $email->email->content_type, qr|charset="?iso-8859-1"?|, "Charset set correctly"); - like( $email->email->header('Message-ID'), qr/\<.*@.*\>/, 'Value set correctly' ); + is( $email->email->header('From'), 'Fróm ', 'Value set correctly' ); + is( $email->email->header('To'), 'Tö ', '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('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' ); + is( $email->email->header('X-Koha-Template-Id'), 1, 'Value set correctly' ); + is( $email->email->header('X-Koha-Message-Id'), 1, 'Value set correctly' ); + is( $email->email->body, $html_body, "Body set correctly" ); + like( $email->email->content_type, qr|text/html|, "Content type set correctly" ); + like( $email->email->content_type, qr|charset="?iso-8859-1"?|, "Charset set correctly" ); + like( $email->email->header('Message-ID'), qr/\<.*@.*\>/, 'Value set correctly' ); $email = Koha::Email->create( { -- 2.39.5