Skip to content

Commit

Permalink
管理者にBccメールが送信されていないことを期待値とするテストケースに修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-endo committed Mar 9, 2017
1 parent 371c080 commit a7277ed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/Eccube/Tests/Service/MailServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,7 @@ public function testSendPasswordResetNotificationMail()
$this->expected = 'Reply-To: '.$this->BaseInfo->getEmail03();
$this->verifyRegExp($Message, 'Reply-Toは'.$this->BaseInfo->getEmail03().'ではありません');

$BccMessage = $this->getMessage($Messages[1]->id);
$this->expected = 'Bcc: '.$this->BaseInfo->getEmail01();
$this->verifyRegExp($BccMessage, 'BCC');
$this->assertLessThanOrEqual(1, count($Messages), 'Bccメールは送信しない');
}

public function testSendPasswordResetCompleteMail()
Expand All @@ -372,9 +370,7 @@ public function testSendPasswordResetCompleteMail()
$this->expected = 'Reply-To: '.$this->BaseInfo->getEmail03();
$this->verifyRegExp($Message, 'Reply-Toは'.$this->BaseInfo->getEmail03().'ではありません');

$BccMessage = $this->getMessage($Messages[1]->id);
$this->expected = 'Bcc: '.$this->BaseInfo->getEmail01();
$this->verifyRegExp($BccMessage, 'BCC');
$this->assertLessThanOrEqual(1, count($Messages), 'Bccメールは送信しない');
}

protected function getMessages()
Expand Down

0 comments on commit a7277ed

Please sign in to comment.