private function providerCheapestPriceAggregation(): iterable
{ yield 'With no rules' =>
['min' => 60, 'max' => 190, 'rules' =>
[]];
yield 'With rule a' =>
['min' => 60, 'max' => 220, 'rules' =>
['rule-a'
]];
yield 'With rule b' =>
['min' => 60, 'max' => 200, 'rules' =>
['rule-b'
]];
yield 'With rule a+b' =>
['min' => 60, 'max' => 220, 'rules' =>
['rule-a', 'rule-b'
]];
yield 'With rule b+a' =>
['min' => 60, 'max' => 220, 'rules' =>
['rule-b', 'rule-a'
]];
} private function createData(): void
{ $secondLanguage =
$this->
createLanguage();
$this->ids->
set('language-1',
$secondLanguage);
$thirdLanguage =
$this->
createLanguage($secondLanguage);
$this->ids->
set('language-2',
$thirdLanguage);
$fourthLanguage =
$this->
createLanguage();
$this->ids->
set('language-3',
$fourthLanguage);
$this->
createSalesChannel(['id' => Defaults::SALES_CHANNEL_TYPE_STOREFRONT
]);
$this->
getContainer()->
get(Connection::
class)->
executeStatement('DELETE FROM custom_field'
);
$customFieldRepository =
$this->
getContainer()->
get('custom_field_set.repository'
);