mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Added a test case for the helper with no params. Relates to #11658
This commit is contained in:
parent
41e3bd82d8
commit
230066a14b
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…
Add table
Reference in a new issue