public function FlashBagTest::testSet

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php, line 100

Class

FlashBagTest
FlashBagTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Flash

Code

public function testSet() {
  $this->bag
    ->set('notice', 'Foo');
  $this->bag
    ->set('notice', 'Bar');
  $this
    ->assertEquals(array(
    'Bar',
  ), $this->bag
    ->peek('notice'));
}