public function MockFileSessionStorageTest::testRegenerate

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php, line 61

Class

MockFileSessionStorageTest
Test class for MockFileSessionStorage.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

public function testRegenerate() {
  $this->storage
    ->start();
  $this->storage
    ->getBag('attributes')
    ->set('regenerate', 1234);
  $this->storage
    ->regenerate();
  $this
    ->assertEquals(1234, $this->storage
    ->getBag('attributes')
    ->get('regenerate'));
  $this->storage
    ->regenerate(true);
  $this
    ->assertEquals(1234, $this->storage
    ->getBag('attributes')
    ->get('regenerate'));
}