Skip to content

Commit

Permalink
Fix jMailer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Apr 17, 2018
1 parent 44ce37f commit 8c1cd2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testapp/tests-jelix/jelix/utils/jMailerTest.php
Expand Up @@ -97,6 +97,7 @@ public function testDebugMail() {
$this->assertTrue(strpos($content, 'Content-Type: text/plain; charset=UTF-8') !== false);
$this->assertTrue(strpos($content, "Hello this is debug
- From: Super Me <toto@truc.local>
- to: titi@machin.local
- to: toto@machin1.local
- cc: robert@machin2.local
Expand Down Expand Up @@ -146,6 +147,7 @@ public function testDebugHtmlMail() {
$this->assertTrue(strpos($content, 'Content-Type: multipart/alternative;') !== false);
$this->assertTrue(strpos($content, "This is an example of a message that could be send with following parameters, in the normal mode:
- From: Super Me <toto@truc.local>
- to: titi@machin.local
- to: toto@machin1.local
- cc: robert@machin2.local
Expand All @@ -154,8 +156,10 @@ public function testDebugHtmlMail() {
Yeaar!
This is a test mail") !== false);

$this->assertTrue(strpos($content, "<p>This is an example of a message that could be send with following parameters, in the normal mode:</p>
<ul>
<li>From: Super Me &lt;toto@truc.local&gt;</li>
<li>to: titi@machin.local</li>
<li>to: toto@machin1.local</li>
<li>cc: robert@machin2.local</li>
Expand Down Expand Up @@ -208,6 +212,7 @@ public function testDebugHtmlMailWithWhiteListForCc() {
$this->assertTrue(strpos($content, 'Content-Type: multipart/alternative;') !== false);
$this->assertTrue(strpos($content, "This is an example of a message that could be send with following parameters, in the normal mode:
- From: Super Me <toto@truc.local>
- to: titi@machin.local
- to: toto@machin1.local
- cc: robert@machin2.local
Expand All @@ -218,6 +223,7 @@ public function testDebugHtmlMailWithWhiteListForCc() {
This is a test mail") !== false);
$this->assertTrue(strpos($content, "<p>This is an example of a message that could be send with following parameters, in the normal mode:</p>
<ul>
<li>From: Super Me &lt;toto@truc.local&gt;</li>
<li>to: titi@machin.local</li>
<li>to: toto@machin1.local</li>
<li>cc: robert@machin2.local</li>
Expand Down Expand Up @@ -272,6 +278,7 @@ public function testDebugHtmlMailWithWhiteListForTo() {
$this->assertTrue(strpos($content, 'Content-Type: multipart/alternative;') !== false);
$this->assertTrue(strpos($content, "This is an example of a message that could be send with following parameters, in the normal mode:
- From: Super Me <toto@truc.local>
- to: titi@machin.local
- to: toto@machin1.local
- cc: robert@machin2.local
Expand All @@ -282,6 +289,7 @@ public function testDebugHtmlMailWithWhiteListForTo() {
This is a test mail") !== false);
$this->assertTrue(strpos($content, "<p>This is an example of a message that could be send with following parameters, in the normal mode:</p>
<ul>
<li>From: Super Me &lt;toto@truc.local&gt;</li>
<li>to: titi@machin.local</li>
<li>to: toto@machin1.local</li>
<li>cc: robert@machin2.local</li>
Expand Down

0 comments on commit 8c1cd2b

Please sign in to comment.