Bug 28870: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 Aug 2021 21:22:58 +0000 (18:22 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Sep 2021 08:22:35 +0000 (10:22 +0200)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/Koha/Email.t

index a5c56df..03da6eb 100755 (executable)
@@ -37,8 +37,8 @@ subtest 'create() tests' => sub {
 
     my $email = Koha::Email->create(
         {
-            from        => 'from@example.com',
-            to          => 'to@example.com',
+            from        => 'Fróm <from@example.com>',
+            to          => 'Tö <to@example.com>',
             cc          => 'cc@example.com',
             bcc         => 'bcc@example.com',
             reply_to    => 'reply_to@example.com',
@@ -49,8 +49,8 @@ subtest 'create() tests' => sub {
         }
     );
 
-    is( $email->email->header('From'), 'from@example.com', 'Value set correctly' );
-    is( $email->email->header('To'), 'to@example.com', 'Value set correctly' );
+    is( $email->email->header('From'), 'Fróm <from@example.com>', 'Value set correctly' );
+    is( $email->email->header('To'), 'Tö <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('Reply-To'), 'reply_to@example.com', 'Value set correctly' );