mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Merge pull request #314 from romainneutron/flash-messages
[3.8] Add simpler behavior for flash messages
This commit is contained in:
@@ -228,6 +228,17 @@ class ApplicationTest extends \PhraseanetPHPUnitAbstract
|
||||
$this->assertEquals($ret, $app->url($route));
|
||||
}
|
||||
|
||||
public function addSetFlash()
|
||||
{
|
||||
$app = new Application('test');
|
||||
|
||||
$this->assertEquals(array(), $app->getFlash('hello'));
|
||||
$this->assertEquals('BOUM', $app->getFlash('hello', 'BOUM'));
|
||||
|
||||
$app->setFlash('notice', 'BAMBA');
|
||||
$this->assertEquals(array('BAMBA'), $app->getFlash('notice'));
|
||||
}
|
||||
|
||||
private function getAppThatReturnLocale()
|
||||
{
|
||||
$app = new Application('test');
|
||||
|
Reference in New Issue
Block a user