Skip to content

Commit d24d65f

Browse files
committed
MC-17630: Selector in coupons grid does not respect select all/select visible values
1 parent 0c6c410 commit d24d65f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

dev/tests/integration/testsuite/Magento/SalesRule/_files/cart_rule_with_coupon_list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
/* @var CouponRepositoryInterface $couponRepository */
3838
$couponRepository = $objectManager->get(CouponRepositoryInterface::class);
39-
for ($index = 1; $index <= 100; $index ++) {
39+
for ($index = 1; $index <= 30; $index ++) {
4040
$coupon = $objectManager->create(Coupon::class);
4141
$coupon->setRuleId($salesRule->getId())
4242
->setCode('coupon_code_' . $index)

dev/tests/integration/testsuite/Magento/SalesRule/_files/cart_rule_with_coupon_list_rollback.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@
88
use Magento\SalesRule\Model\ResourceModel\Rule\Collection as RuleCollection;
99
use Magento\TestFramework\Helper\Bootstrap;
1010

11+
/** @var \Magento\Framework\Registry $registry */
12+
$registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class);
13+
$registry->unregister('isSecureArea');
14+
$registry->register('isSecureArea', true);
15+
1116
/** @var RuleCollection $collection */
1217
$collection = Bootstrap::getObjectManager()->create(RuleCollection::class);
1318
$collection->addFieldToFilter('name', 'Rule with coupon list');
1419
$rule = $collection->getFirstItem();
1520
if ($rule->getId()) {
1621
$rule->delete();
1722
}
23+
24+
$registry->unregister('isSecureArea');
25+
$registry->register('isSecureArea', false);

0 commit comments

Comments
 (0)