public function AutoExpireFlashBagTest::testPeekAll

File

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

Class

AutoExpireFlashBagTest
AutoExpireFlashBagTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Flash

Code

public function testPeekAll() {
  $array = array(
    'new' => array(
      'notice' => 'Foo',
      'error' => 'Bar',
    ),
  );
  $this->bag
    ->initialize($array);
  $this
    ->assertEquals(array(
    'notice' => 'Foo',
    'error' => 'Bar',
  ), $this->bag
    ->peekAll());
  $this
    ->assertEquals(array(
    'notice' => 'Foo',
    'error' => 'Bar',
  ), $this->bag
    ->peekAll());
}