Skip to content

Commit

Permalink
Added a test case for the helper with no params. Relates to #11658
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yell committed Jan 24, 2018
1 parent 41e3bd8 commit 230066a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit 230066a

Please sign in to comment.