From 230066a14b83a03d4ad13661bea6e24c38a91ed0 Mon Sep 17 00:00:00 2001 From: David Yell Date: Wed, 24 Jan 2018 10:13:56 +0000 Subject: [PATCH] Added a test case for the helper with no params. Relates to #11658 --- lib/Cake/Test/Case/View/Helper/SessionHelperTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php b/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php index 5ff9737c6..adf2a0bb2 100644 --- a/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php @@ -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 = '
This is a calling
'; + $this->assertEquals($expected, $result); + $this->assertFalse($this->Session->check('Message.flash')); + } + /** * test flash() with the attributes. *