Skip to content

Commit 6680eb9

Browse files
committed
MAGETWO-62302: Fatal error when exceeding number of cookies per domain
1 parent 1598c0f commit 6680eb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/PhpCookieManagerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
/**
2424
* Test PhpCookieManager
25+
*
26+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2527
*/
2628
class PhpCookieManagerTest extends \PHPUnit_Framework_TestCase
2729
{
@@ -542,7 +544,7 @@ public function testSetTooManyCookies()
542544
->willReturn($userAgent);
543545

544546
$this->loggerMock->expects($this->once())
545-
->method('warning')
547+
->method('warning')
546548
->with(
547549
new Phrase('Unable to send the cookie. Maximum number of cookies would be exceeded.'),
548550
array_merge($_COOKIE, ['user-agent' => $userAgent])

0 commit comments

Comments
 (0)