File tree 2 files changed +23
-2
lines changed
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,11 @@ public function testHeaders()
144
144
public function testBuildMail ()
145
145
{
146
146
$ issue_id = null ;
147
- $ from = 'root@localhost ' ;
147
+ $ from = 'Elan Ruusamäe < root@localhost> ' ;
148
148
$ to = '' ;
149
149
$ cc = '' ;
150
150
$ subject = 'söme messidž ' ;
151
- $ body = "Hello, bödi tekst \n\nBye \n " ;
151
+ $ body = "Hello, bödi tekst \n\nBye " ;
152
152
$ in_reply_to = '' ;
153
153
$ iaf_ids = [];
154
154
@@ -159,6 +159,14 @@ public function testBuildMail()
159
159
$ this ->assertEquals ($ body , $ mail ->getMessageBody ());
160
160
}
161
161
162
+ public function testBuildMailSave ()
163
+ {
164
+ // this is mail saved by Support::buildMail
165
+ $ content = $ this ->readDataFile ('saved_mail.txt ' );
166
+ $ mail = MailMessage::createFromString ($ content );
167
+ $ this ->assertNotEmpty ($ mail );
168
+ }
169
+
162
170
/**
163
171
* Hack out inconsistencies:
164
172
*
Original file line number Diff line number Diff line change
1
+ Message-ID: <eventum.md5.5bhio6s4d.3b93g4mym7i88@localhost>
2
+ From: =?UTF-8?Q?Elan=20Ruusam=C3=A4e?= <
[email protected] >
3
+ Subject: Issue closed comments
4
+ MIME-Version: 1.0
5
+ Content-Type: text/plain;
6
+ charset="UTF-8"
7
+ Content-Transfer-Encoding: 8bit
8
+ Date: Thu, 20 Jul 2017 16:42:46 GMT
9
+ In-Reply-To: <eventum.md5.5aqn97szv.1kwgvag1svvir@localhost>
10
+
11
+ suulle sulle
12
+
13
+ vill.
You can’t perform that action at this time.
0 commit comments