Skip to content

Commit 5822d8d

Browse files
committed
MAGETWO-59916: Problem arose when applying a coupon. ~QUANS~
1 parent eb2d435 commit 5822d8d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dev/tests/integration/testsuite/Magento/Checkout/Controller/Cart/Index/CouponPostTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace Magento\Checkout\Controller\Cart\Index;
88

9+
/**
10+
* @magentoDbIsolation enabled
11+
*/
912
class CouponPostTest extends \Magento\TestFramework\TestCase\AbstractController
1013
{
1114
/**
@@ -15,7 +18,7 @@ class CouponPostTest extends \Magento\TestFramework\TestCase\AbstractController
1518
*/
1619
public function testExecute()
1720
{
18-
/** @var $session \Magento\Checkout\Model\Session */
21+
/** @var $session \Magento\Checkout\Model\Session */
1922
$session = $this->_objectManager->create(\Magento\Checkout\Model\Session::class);
2023
$quote = $session->getQuote();
2124
$quote->setData('trigger_recollect', 1)->setTotalsCollectedFlag(true)->save();
@@ -28,7 +31,9 @@ public function testExecute()
2831
'checkout/cart/couponPost/'
2932
);
3033

31-
$this->assertSessionMessages($this->equalTo(['The coupon code "test" is not valid.']),
32-
\Magento\Framework\Message\MessageInterface::TYPE_ERROR);
34+
$this->assertSessionMessages(
35+
$this->equalTo(['The coupon code "test" is not valid.']),
36+
\Magento\Framework\Message\MessageInterface::TYPE_ERROR
37+
);
3338
}
3439
}

0 commit comments

Comments
 (0)