10 use Magento\Mtf\TestCase\Injectable;
11 use Magento\Mtf\TestStep\TestStepFactory;
12 use Magento\Mtf\Fixture\FixtureFactory;
35 private $fixtureFactory;
52 FixtureFactory $fixtureFactory,
53 TestStepFactory $stepFactory
55 $this->fixtureFactory = $fixtureFactory;
56 $this->stepFactory = $stepFactory;
71 $this->stepFactory->create(
72 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
77 $product = $this->fixtureFactory->createByCode(
79 [
'dataset' =>
$product[
'dataset'],
'data' => [
'website_ids' => [[
'store' =>
$store]]]]
85 $configFixture = $this->fixtureFactory->createByCode(
89 'currency/options/allow' => [
90 'value' => $currencies[0][
'allowedCurrencies']
92 'currency/options/base' => [
93 'value' => $currencies[0][
'baseCurrency']
95 'currency/options/default' => [
96 'value' => $currencies[0][
'defaultCurrency']
100 'scope_type' =>
'website',
101 'website_id' =>
$websites[0]->getWebsiteId(),
102 'set_level' =>
'website',
107 $configFixture->persist();
121 $this->stepFactory->create(
122 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
123 [
'configData' =>
'config_currency_symbols_usd, price_scope_website_rollback']
test($configData, array $product, Store $store, array $currencies=[])
__inject(FixtureFactory $fixtureFactory, TestStepFactory $stepFactory)