You are here

protected function PersistentLoginTest::getCookieJar in Persistent Login 8

Returns the jar which contains the cookies for the current session.

Return value

\Symfony\Component\BrowserKit\CookieJar The cookie jar.

1 call to PersistentLoginTest::getCookieJar()
PersistentLoginTest::restartSession in Tests/src/Functional/PersistentLoginTest.php
Emulates closing and re-opening of the browser.

File

Tests/src/Functional/PersistentLoginTest.php, line 116

Class

PersistentLoginTest
Tests the persistent login functionality.

Namespace

Drupal\Tests\persistent_login\Functional

Code

protected function getCookieJar() {
  return $this
    ->getSession()
    ->getDriver()
    ->getClient()
    ->getCookieJar();
}