Skip to content

Commit daed968

Browse files
committed
Add fix for older wordpress
1 parent f770a93 commit daed968

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/specs/test-mailer.http.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ function test_get_request_body_without_template() {
244244

245245
//INCLUDE REPLYTO
246246
$this->mailer->addReplyTo('reply@abc.com', 'reply-to');
247+
$this->mailer->addCustomHeader('Reply-To', 'reply-to <reply@abc.com>'); //for below version v4.6
247248
$actual = NSA::invokeMethod($this->mailer, 'get_request_body');
248249
$actual['content']['headers'] = []; //see note above
249250
$expected_request_body['content']['reply_to'] = 'reply-to <reply@abc.com>';
@@ -305,6 +306,7 @@ function test_get_request_body_with_template() {
305306

306307
//INCLUDE REPLYTO
307308
$this->mailer->addReplyTo('reply@abc.com', 'reply-to');
309+
$this->mailer->addCustomHeader('Reply-To', 'reply-to <reply@abc.com>'); //for below version v4.6
308310
$actual = NSA::invokeMethod($this->mailer, 'get_request_body');
309311
$expected_request_body['substitution_data']['reply_to'] = 'reply-to <reply@abc.com>';
310312
$this->assertTrue($expected_request_body == $actual);

0 commit comments

Comments
 (0)