Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 1, 2015
1 parent 9ae20a9 commit 7b0138a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/View/Helper/SessionHelperTest.php
Expand Up @@ -133,7 +133,7 @@ public function testFlash()

$result = $this->Session->flash('notification');
$result = str_replace("\r\n", "\n", $result);
$expected = "<div id=\"notificationLayout\">\n\t<h1>Alert!</h1>\n\t<h3>Notice!</h3>\n\t<p>This is a test of the emergency broadcasting system</p>\n</div>";
$expected = "<div id=\"notificationLayout\">\n <h1>Alert!</h1>\n <h3>Notice!</h3>\n <p>This is a test of the emergency broadcasting system</p>\n</div>\n";
$this->assertEquals($expected, $result);
$this->assertFalse($this->Session->check('Message.notification'));
}
Expand Down Expand Up @@ -174,7 +174,7 @@ public function testFlashElementInAttrs()
'element' => 'session_helper',
'params' => array('title' => 'Notice!', 'name' => 'Alert!')
));
$expected = "<div id=\"notificationLayout\">\n\t<h1>Alert!</h1>\n\t<h3>Notice!</h3>\n\t<p>This is a calling</p>\n</div>";
$expected = "<div id=\"notificationLayout\">\n <h1>Alert!</h1>\n <h3>Notice!</h3>\n <p>This is a calling</p>\n</div>\n";
$this->assertTextEquals($expected, $result);
}

Expand Down

0 comments on commit 7b0138a

Please sign in to comment.