class ProductPricingHookTest extends TestCase
{ use IntegrationTestBehaviour;
public function testScripts(): void
{ $ids =
new IdsCollection();
$products =
[ (new ProductBuilder($ids, 'p1'
)) ->
visibility() ->
price(100
) ->
build(),
(new ProductBuilder($ids, 'p2'
)) ->
price(100
) ->
visibility() ->
prices('rule-A', 50
) ->
prices('rule-A', 30, 'default', null, 10
) ->
prices('rule-A', 15, 'default', null, 20
) ->
build(),
(new ProductBuilder($ids, 'p3'
))