Skip to content
Permalink
Browse files

Add failing test for #7570

Documented behavior that exists in 3.x is not working in 2.x
  • Loading branch information...
markstory committed Oct 18, 2015
1 parent d0e7a2f commit dea32345c8ef2fad80f3966a3047a10f42a39ba7
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/Cake/Test/Case/Controller/Component/FlashComponentTest.php
@@ -158,6 +158,16 @@ public function testCall() {
$result = CakeSession::read('Message.flash');
$this->assertEquals($expected, $result);
$this->Flash->alert('It worked', array('plugin' => 'MyPlugin'));
$expected = array(
'message' => 'It worked',
'key' => 'flash',
'element' => 'MyPlugin.Flash/alert',
'params' => array()
);
$result = CakeSession::read('Message.flash');
$this->assertEquals($expected, $result);
$this->Flash->error('It did not work', array('element' => 'error_thing'));
$expected = array(
'message' => 'It did not work',

0 comments on commit dea3234

Please sign in to comment.
You can’t perform that action at this time.