You are here

public function RequestTest::testHasSession in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testHasSession()

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 1368

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testHasSession() {
  $request = new Request();
  $this
    ->assertFalse($request
    ->hasSession());
  $request
    ->setSession(new Session(new MockArraySessionStorage()));
  $this
    ->assertTrue($request
    ->hasSession());
}