Differential D19002 Diff 45593 src/applications/metamta/storage/__tests__/PhabricatorMetaMTAMailTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/__tests__/PhabricatorMetaMTAMailTestCase.php
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | public function testThreadIDHeaders() { | ||||
$this->runThreadIDHeadersWithConfiguration(false, true); | $this->runThreadIDHeadersWithConfiguration(false, true); | ||||
$this->runThreadIDHeadersWithConfiguration(false, false); | $this->runThreadIDHeadersWithConfiguration(false, false); | ||||
} | } | ||||
private function runThreadIDHeadersWithConfiguration( | private function runThreadIDHeadersWithConfiguration( | ||||
$supports_message_id, | $supports_message_id, | ||||
$is_first_mail) { | $is_first_mail) { | ||||
$mailer = new PhabricatorMailImplementationTestAdapter( | $mailer = new PhabricatorMailImplementationTestAdapter(); | ||||
$mailer->prepareForSend( | |||||
array( | array( | ||||
'supportsMessageIDHeader' => $supports_message_id, | 'supportsMessageIDHeader' => $supports_message_id, | ||||
)); | )); | ||||
$thread_id = '<somethread-12345@somedomain.tld>'; | $thread_id = '<somethread-12345@somedomain.tld>'; | ||||
$mail = new PhabricatorMetaMTAMail(); | $mail = new PhabricatorMetaMTAMail(); | ||||
$mail->setThreadID($thread_id, $is_first_mail); | $mail->setThreadID($thread_id, $is_first_mail); | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |