Bugzilla – Attachment 113555 Details for
Bug 26948
Some Koha Emails are double encoded (HOLD, ODUE, ...)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26948: Unit tests
Bug-26948-Unit-tests.patch (text/plain), 1.36 KB, created by
Martin Renvoize (ashimema)
on 2020-11-12 13:36:41 UTC
(
hide
)
Description:
Bug 26948: Unit tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-11-12 13:36:41 UTC
Size:
1.36 KB
patch
obsolete
>From 7c1549ad0b68c1362a0df72b44c77cb940e36e13 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 12 Nov 2020 13:36:00 +0000 >Subject: [PATCH] Bug 26948: Unit tests > >--- > t/db_dependent/Letters.t | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t >index 766e21d7f4..f29f46eaeb 100755 >--- a/t/db_dependent/Letters.t >+++ b/t/db_dependent/Letters.t >@@ -24,6 +24,8 @@ use Test::Warn; > > use MARC::Record; > >+use utf8; >+ > my ( $email_object, $sendmail_params ); > > my $email_sender_module = Test::MockModule->new('Email::Stuffer'); >@@ -31,6 +33,8 @@ $email_sender_module->mock( > 'send_or_die', > sub { > ( $email_object, $sendmail_params ) = @_; >+ my $str = $email_object->email->as_string; >+ unlike $str, qr/I =C3=A2=C2=99=C2=A5 Koha=/, "String is not double encoded"; > warn "Fake send_or_die"; > } > ); >@@ -110,8 +114,8 @@ is( $message_id, undef, 'EnqueueLetter without the letter argument returns undef > > delete $my_message->{message_transport_type}; > $my_message->{letter} = { >- content => 'a message', >- title => 'message title', >+ content => 'I ⥠Koha', >+ title => 'å¤é is great', > metadata => 'metadata', > code => 'TEST_MESSAGE', > content_type => 'text/plain', >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26948
:
113242
|
113243
|
113244
|
113245
|
113545
|
113553
|
113555
|
113558
|
113559
|
113560
|
113561