Definition at line 8 of file SessionTest.php.
◆ renewPersistentCookieDataProvider()
renewPersistentCookieDataProvider |
( |
| ) |
|
Definition at line 73 of file SessionTest.php.
76 'no duration' => [
null],
77 'no cookie' => [1000,
null],
◆ setUp()
Definition at line 31 of file SessionTest.php.
34 $this->session = $this->objectManager->create(
35 \
Magento\Persistent\Model\Session::class
37 $this->existingCookies = $_COOKIE;
static getObjectManager()
◆ tearDown()
◆ testRemovePersistendCookie()
testRemovePersistendCookie |
( |
| ) |
|
Definition at line 54 of file SessionTest.php.
57 $this->session->removePersistentCookie();
◆ testRenewPersistentCookie()
testRenewPersistentCookie |
( |
|
$duration, |
|
|
|
$cookieValue = 'cookieValue' |
|
) |
| |
- Parameters
-
int | $duration | |
string | $cookieValue | @dataProvider renewPersistentCookieDataProvider |
Definition at line 66 of file SessionTest.php.
69 $this->session->renewPersistentCookie($duration,
'/');
◆ testSetPersistentCookie()
testSetPersistentCookie |
( |
| ) |
|
Definition at line 45 of file SessionTest.php.
49 $this->session->setKey($key);
50 $this->session->setPersistentCookie(1000,
'/');
◆ $existingCookies
◆ $objectManager
◆ $session
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Persistent/Model/SessionTest.php