Skip to content

Commit 4e0d574

Browse files
author
Ievgen Shakhsuvarov
committed
MAGETWO-37834: Unable to add product to shopping cart if Use Secure URLs in Frontend = Yes
- Unit test
1 parent a81c586 commit 4e0d574

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/internal/Magento/Framework/Url/Test/Unit/SecurityInfoTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class SecurityInfoTest extends \PHPUnit_Framework_TestCase
1919

2020
protected function setUp()
2121
{
22-
$this->_model = new \Magento\Framework\Url\SecurityInfo(['/account', '/cart']);
22+
$this->_model = new \Magento\Framework\Url\SecurityInfo(['/account', '/cart'], ['/cart/remove', 'customer']);
2323
}
2424

2525
/**
@@ -39,7 +39,9 @@ public function secureUrlDataProvider()
3939
['/product', false],
4040
['/product/12312', false],
4141
['/cart', true],
42-
['/cart/add', true]
42+
['/cart/add', true],
43+
['/cart/remove', false],
44+
['/customer', false]
4345
];
4446
}
4547
}

0 commit comments

Comments
 (0)