10 $rule = Bootstrap::getObjectManager()->get(\
Magento\CatalogRule\Model\RuleFactory::class)->create();
12 'name' =>
'test_rule',
14 'stop_rules_processing' => 0,
16 'customer_group_ids' => [0, 1],
17 'discount_amount' => 2,
18 'simple_action' =>
'by_percent',
23 'sub_discount_amount' => 0,
26 'type' => \
Magento\CatalogRule\Model\Rule\Condition\Combine::class,
27 'aggregator' =>
'all',
32 'type' => \
Magento\CatalogRule\Model\Rule\Condition\Product::class,
33 'attribute' =>
'test_attribute',
35 'value' =>
'test_attribute_value',