mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge branch 'issue-11661' into 2.x
This commit is contained in:
commit
49725a8f86
1 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue