Skip to content

Commit

Permalink
Add failing test for #7570
Browse files Browse the repository at this point in the history
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 dea3234
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Cake/Test/Case/Controller/Component/FlashComponentTest.php
Expand Up @@ -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',
Expand Down

0 comments on commit dea3234

Please sign in to comment.