Skip to content

Commit 4c4a677

Browse files
author
Roger
committed
Issue 36049: update unit test
1 parent 71b52f2 commit 4c4a677

File tree

1 file changed

+35
-25
lines changed

1 file changed

+35
-25
lines changed

app/code/Magento/CatalogRule/Test/Unit/Model/Indexer/ReindexRuleProductTest.php

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -318,30 +318,6 @@ public function executeDataProvider(): array
318318
'action_amount' => 43,
319319
'action_stop' => true,
320320
'sort_order' => 1
321-
],
322-
[
323-
'rule_id' => 100,
324-
'from_time' => 1498028400,
325-
'to_time' => 1498892399,
326-
'website_id' => 3,
327-
'customer_group_id' => 10,
328-
'product_id' => 3,
329-
'action_operator' => 'simple_action',
330-
'action_amount' => 43,
331-
'action_stop' => true,
332-
'sort_order' => 1
333-
],
334-
[
335-
'rule_id' => 100,
336-
'from_time' => 1498028400,
337-
'to_time' => 1498892399,
338-
'website_id' => 3,
339-
'customer_group_id' => 20,
340-
'product_id' => 3,
341-
'action_operator' => 'simple_action',
342-
'action_amount' => 43,
343-
'action_stop' => true,
344-
'sort_order' => 1
345321
]
346322
]
347323
],
@@ -412,7 +388,41 @@ public function executeDataProvider(): array
412388
'sort_order' => 1
413389
]
414390
]
415-
]
391+
],
392+
[
393+
[1, 2, 3],
394+
[
395+
1 => [1 => true],
396+
2 => [2 => true],
397+
3 => [3 => false]
398+
],
399+
[
400+
[
401+
'rule_id' => 100,
402+
'from_time' => 1498028400,
403+
'to_time' => 1498892399,
404+
'website_id' => 1,
405+
'customer_group_id' => 20,
406+
'product_id' => 1,
407+
'action_operator' => 'simple_action',
408+
'action_amount' => 43,
409+
'action_stop' => true,
410+
'sort_order' => 1
411+
],
412+
[
413+
'rule_id' => 100,
414+
'from_time' => 1498028400,
415+
'to_time' => 1498892399,
416+
'website_id' => 2,
417+
'customer_group_id' => 20,
418+
'product_id' => 2,
419+
'action_operator' => 'simple_action',
420+
'action_amount' => 43,
421+
'action_stop' => true,
422+
'sort_order' => 1
423+
]
424+
]
425+
]
416426
];
417427
}
418428

0 commit comments

Comments
 (0)