Merge branch 'issue-11661' into 2.x

This commit is contained in:
mark_story 2018-01-24 21:18:17 -05:00
commit 49725a8f86

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.
*