File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
dev/tests/integration/testsuite/Magento/Checkout/Controller/Cart/Index Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Checkout \Controller \Cart \Index ;
8
8
9
+ /**
10
+ * @magentoDbIsolation enabled
11
+ */
9
12
class CouponPostTest extends \Magento \TestFramework \TestCase \AbstractController
10
13
{
11
14
/**
@@ -15,7 +18,7 @@ class CouponPostTest extends \Magento\TestFramework\TestCase\AbstractController
15
18
*/
16
19
public function testExecute ()
17
20
{
18
- /** @var $session \Magento\Checkout\Model\Session */
21
+ /** @var $session \Magento\Checkout\Model\Session */
19
22
$ session = $ this ->_objectManager ->create (\Magento \Checkout \Model \Session::class);
20
23
$ quote = $ session ->getQuote ();
21
24
$ quote ->setData ('trigger_recollect ' , 1 )->setTotalsCollectedFlag (true )->save ();
@@ -28,7 +31,9 @@ public function testExecute()
28
31
'checkout/cart/couponPost/ '
29
32
);
30
33
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
+ );
33
38
}
34
39
}
You can’t perform that action at this time.
0 commit comments