Browse Source

Test flash message with custom id.

Kim Egede Jakobsen 11 years ago
parent
commit
bd911c01c8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/TestCase/View/Helper/SessionHelperTest.php

+ 2 - 1
tests/TestCase/View/Helper/SessionHelperTest.php

@@ -139,7 +139,8 @@ class SessionHelperTest extends TestCase {
  */
 	public function testFlashIncomplete() {
 		$result = $this->Session->flash('incomplete');
-		$expected = '<div id="flash-message" class="message-info">A thing happened</div>';
+		$expected = '<div id="incomplete-message" class="message-info">A thing happened</div>';
+		$this->assertEquals($expected, $result);
 	}
 
 /**