Skip to content

Commit c3a3112

Browse files
committed
AC-7850: [2.4.6-develop] Build Failures with PHP 8.2
1 parent 0a19a7c commit c3a3112

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dev/tests/api-functional/testsuite/Magento/Framework/Stdlib/CookieManagerTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*/
1717
class CookieManagerTest extends \Magento\TestFramework\TestCase\WebapiAbstract
1818
{
19+
/**
20+
* @var string
21+
*/
1922
private $cookieTesterUrl = 'testmoduleone/CookieTester';
2023

2124
/** @var CurlClientWithCookies */
@@ -144,7 +147,10 @@ public function testDeleteCookie()
144147
if (isset($cookie['max-age'])) {
145148
$this->assertEquals(0, $cookie['max-age']);
146149
}
147-
$this->assertEquals('Thu, 01 Jan 1970 00:00:01 GMT', $cookie['expires']);
150+
$this->assertEquals(
151+
date('D, j-M-o H:i:s T', strtotime('Thu, 01-Jan-1970 00:00:01 GMT')),
152+
date('D, j-M-o H:i:s T', strtotime($cookie['expires']))
153+
);
148154
}
149155

150156
/**

0 commit comments

Comments
 (0)