Skip to content

Commit

Permalink
Merge pull request #1 from ryo-endo/ec-cube-2189
Browse files Browse the repository at this point in the history
管理者にBccメールが送信されていないことを期待値とするテストケースに修正。
  • Loading branch information
okazy authored Mar 9, 2017
2 parents 57038d0 + a7277ed commit ae33e44
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 ae33e44

Please sign in to comment.