Skip to content
Permalink
Browse files

Added a test case for the helper with no params. Relates to #11658

  • Loading branch information...
davidyell committed Jan 24, 2018
1 parent 41e3bd8 commit 230066a14b83a03d4ad13661bea6e24c38a91ed0
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
@@ -150,6 +150,18 @@ public function testFlash() {
$this->assertFalse($this->Session->check('Message.bare'));
}
/**
* Test the flash method works without any params being passed
*
* @return void
*/
public function testFlashWithNoParams() {
$result = $this->Session->flash();
$expected = '<div id="flashMessage" class="message">This is a calling</div>';
$this->assertEquals($expected, $result);
$this->assertFalse($this->Session->check('Message.flash'));
}
/**
* test flash() with the attributes.
*

0 comments on commit 230066a

Please sign in to comment.
You can’t perform that action at this time.