Skip to content

Commit 644ea0e

Browse files
author
Dale Sikkema
committed
Merge remote-tracking branch 'origin/MAGETWO-22826-persistent-cookies' into ext-s51
2 parents 6e5a195 + 1d8ac6f commit 644ea0e

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

app/code/Magento/Sales/Helper/Guest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ private function setGuestViewCookie($cookieValue)
225225
{
226226
$metadata = $this->cookieMetadataFactory->createPublicCookieMetadata()
227227
->setPath(self::COOKIE_PATH)
228-
->setDuration(self::COOKIE_LIFETIME)
229228
->setHttpOnly(true);
230229
$this->cookieManager->setPublicCookie(self::COOKIE_NAME, $cookieValue, $metadata);
231230
}

app/code/Magento/Sales/Test/Unit/Helper/GuestTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ public function testLoadValidOrderNotEmptyPost()
138138
->method('setPath')
139139
->with(Guest::COOKIE_PATH)
140140
->will($this->returnSelf());
141-
$metaDataMock->expects($this->once())
142-
->method('setDuration')
143-
->with(Guest::COOKIE_LIFETIME)
144-
->will($this->returnSelf());
145141
$metaDataMock->expects($this->once())
146142
->method('setHttpOnly')
147143
->with(true)
@@ -188,10 +184,6 @@ public function testLoadValidOrderStoredCookie()
188184
->method('setPath')
189185
->with(Guest::COOKIE_PATH)
190186
->will($this->returnSelf());
191-
$metaDataMock->expects($this->once())
192-
->method('setDuration')
193-
->with(Guest::COOKIE_LIFETIME)
194-
->will($this->returnSelf());
195187
$metaDataMock->expects($this->once())
196188
->method('setHttpOnly')
197189
->with(true)

0 commit comments

Comments
 (0)