Skip to content

Commit 45a228e

Browse files
committed
Test that it do not remove the new flashes when displaying the existing ones
1 parent c91ca57 commit 45a228e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/Session/Flash/AutoExpireFlashBagTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,12 @@ public function testClear()
150150
{
151151
$this->assertEquals(array('notice' => array('A previous flash message')), $this->bag->clear());
152152
}
153+
154+
public function testDoNotRemoveTheNewFlashesWhenDisplayingTheExistingOnes()
155+
{
156+
$this->bag->add('success', 'Something');
157+
$this->bag->all();
158+
159+
$this->assertEquals(array('new' => array('success' => array('Something')), 'display' => array()), $this->array);
160+
}
153161
}

0 commit comments

Comments
 (0)