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

This commit is contained in:
David Yell 2018-01-24 10:13:56 +00:00
parent 41e3bd82d8
commit 230066a14b

View file

@ -150,6 +150,18 @@ class SessionHelperTest extends CakeTestCase {
$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.
*