Changeset 48443
- Timestamp:
- 07/11/2020 11:27:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/mail.php
r48033 r48443 81 81 82 82 // We need some better assertions here but these catch the failure for now. 83 $this->assertEquals ( $body, $mailer->get_sent()->body );83 $this->assertEqualsIgnoreEOL( $body, $mailer->get_sent()->body ); 84 84 $this->assertTrue( strpos( iconv_mime_decode_headers( ( $mailer->get_sent()->header ) )['Content-Type'][0], 'boundary="----=_Part_4892_25692638.1192452070893"' ) > 0 ); 85 85 $this->assertTrue( strpos( $mailer->get_sent()->header, 'charset=' ) > 0 ); … … 113 113 $this->assertEquals( 'bcc@bcc.com', $mailer->get_recipient( 'bcc' )->address ); 114 114 $this->assertEquals( 'The Blind Carbon Guy', $mailer->get_recipient( 'bcc' )->name ); 115 $this->assertEquals ( $message . "\n", $mailer->get_sent()->body );115 $this->assertEqualsIgnoreEOL( $message . "\n", $mailer->get_sent()->body ); 116 116 } 117 117 … … 133 133 $this->assertEquals( 'another_address@different-tld.com', $mailer->get_recipient( 'to', 0, 1 )->address ); 134 134 $this->assertEquals( 'Another Name', $mailer->get_recipient( 'to', 0, 1 )->name ); 135 $this->assertEquals ( $message . "\n", $mailer->get_sent()->body );135 $this->assertEqualsIgnoreEOL( $message . "\n", $mailer->get_sent()->body ); 136 136 } 137 137 … … 146 146 $this->assertEquals( 'address@tld.com', $mailer->get_recipient( 'to' )->address ); 147 147 $this->assertEquals( 'another_address@different-tld.com', $mailer->get_recipient( 'to', 0, 1 )->address ); 148 $this->assertEquals ( $message . "\n", $mailer->get_sent()->body );148 $this->assertEqualsIgnoreEOL( $message . "\n", $mailer->get_sent()->body ); 149 149 } 150 150 … … 161 161 $mailer = tests_retrieve_phpmailer_instance(); 162 162 $this->assertEquals( 'address@tld.com', $mailer->get_recipient( 'to' )->address ); 163 $this->assertEquals ( $message . "\n", $mailer->get_sent()->body );163 $this->assertEqualsIgnoreEOL( $message . "\n", $mailer->get_sent()->body ); 164 164 } 165 165
Note: See TracChangeset
for help on using the changeset viewer.