public function testInitialize() {
$bag = new FlashBag();
$array = array(
'new' => array(
'notice' => array(
'A previous flash message',
),
),
);
$bag
->initialize($array);
$this
->assertEquals(array(
'A previous flash message',
), $bag
->peek('notice'));
$array = array(
'new' => array(
'notice' => array(
'Something else',
),
'error' => array(
'a',
),
),
);
$bag
->initialize($array);
$this
->assertEquals(array(
'Something else',
), $bag
->peek('notice'));
$this
->assertEquals(array(
'a',
), $bag
->peek('error'));
}