mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Add failing test for #7570
Documented behavior that exists in 3.x is not working in 2.x
This commit is contained in:
parent
d0e7a2fd38
commit
dea32345c8
1 changed files with 10 additions and 0 deletions
|
@ -158,6 +158,16 @@ class FlashComponentTest extends CakeTestCase {
|
|||
$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',
|
||||
|
|
Loading…
Reference in a new issue