Skip to content

Commit ee57f4f

Browse files
committed
Fix assert
1 parent 8acd7e4 commit ee57f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/pluggable/wpMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ public function test_wp_mail_plain_and_html() {
695695
wp_mail( $to, $subject, $message, $headers );
696696
$mailer = tests_retrieve_phpmailer_instance();
697697

698-
$this->assertTrue( preg_match( '/boundary="(.*)"/', $mailer->get_sent()->header, $matches ), 'Expected to match boundary directive in header.' );
698+
$this->assertSame( 1, preg_match( '/boundary="(.*)"/', $mailer->get_sent()->header, $matches ), 'Expected to match boundary directive in header.' );
699699
$boundary = $matches[1];
700700
$body = '--' . $boundary . "\n";
701701
$body .= 'Content-Type: text/plain; charset=us-ascii' . "\n";

0 commit comments

Comments
 (0)