File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,6 @@ private function setGuestViewCookie($cookieValue)
225
225
{
226
226
$ metadata = $ this ->cookieMetadataFactory ->createPublicCookieMetadata ()
227
227
->setPath (self ::COOKIE_PATH )
228
- ->setDuration (self ::COOKIE_LIFETIME )
229
228
->setHttpOnly (true );
230
229
$ this ->cookieManager ->setPublicCookie (self ::COOKIE_NAME , $ cookieValue , $ metadata );
231
230
}
Original file line number Diff line number Diff line change @@ -138,10 +138,6 @@ public function testLoadValidOrderNotEmptyPost()
138
138
->method ('setPath ' )
139
139
->with (Guest::COOKIE_PATH )
140
140
->will ($ this ->returnSelf ());
141
- $ metaDataMock ->expects ($ this ->once ())
142
- ->method ('setDuration ' )
143
- ->with (Guest::COOKIE_LIFETIME )
144
- ->will ($ this ->returnSelf ());
145
141
$ metaDataMock ->expects ($ this ->once ())
146
142
->method ('setHttpOnly ' )
147
143
->with (true )
@@ -188,10 +184,6 @@ public function testLoadValidOrderStoredCookie()
188
184
->method ('setPath ' )
189
185
->with (Guest::COOKIE_PATH )
190
186
->will ($ this ->returnSelf ());
191
- $ metaDataMock ->expects ($ this ->once ())
192
- ->method ('setDuration ' )
193
- ->with (Guest::COOKIE_LIFETIME )
194
- ->will ($ this ->returnSelf ());
195
187
$ metaDataMock ->expects ($ this ->once ())
196
188
->method ('setHttpOnly ' )
197
189
->with (true )
You can’t perform that action at this time.
0 commit comments