File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php, line 980
Class
- RequestTest
Namespace
Symfony\Component\HttpFoundation\Tests
Code
public function testHasPreviousSession() {
$request = new Request();
$this
->assertFalse($request
->hasPreviousSession());
$request->cookies
->set('MOCKSESSID', 'foo');
$this
->assertFalse($request
->hasPreviousSession());
$request
->setSession(new Session(new MockArraySessionStorage()));
$this
->assertTrue($request
->hasPreviousSession());
}