Skip to content

Commit

Permalink
Fix Email testSendRenderWithHelpers() test
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Nov 13, 2013
1 parent d012cc8 commit 3d6c949
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cake/Test/TestCase/Network/Email/EmailTest.php
Expand Up @@ -1472,7 +1472,9 @@ public function testSendRenderWithHelpers() {
$this->assertInstanceOf('Cake\Network\Email\Email', $result);

$result = $this->CakeEmail->send();
$this->assertTrue((bool)strpos($result['message'], 'Right now: ' . date('Y-m-d\TH:i:s\Z', $timestamp)));
$dateTime = new \DateTime;
$dateTime->setTimestamp($timestamp);
$this->assertTrue((bool)strpos($result['message'], 'Right now: ' . $dateTime->format($dateTime::ATOM)));

$result = $this->CakeEmail->helpers();
$this->assertEquals(array('Time'), $result);
Expand Down

0 comments on commit 3d6c949

Please sign in to comment.