Skip to content

Commit cdf4df4

Browse files
MAGETWO-58729: [Generator] Add images to performance profile generator
1 parent 33603bb commit cdf4df4

File tree

8 files changed

+69
-4
lines changed

8 files changed

+69
-4
lines changed

setup/src/Magento/Setup/Fixtures/AdminUsersFixture.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
/**
1010
* Generate admin users
11+
*
12+
* Support the following format:
13+
* <!-- Number of admin users -->
14+
* <admin_users>{int}</admin_users>
1115
*/
1216
class AdminUsersFixture extends Fixture
1317
{

setup/src/Magento/Setup/Fixtures/AttributeSetsFixture.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88

99
/**
1010
* Fixture for Attribute Sets and Attributes based on the configuration
11+
*
12+
* Support the following format:
13+
* <!-- Number of product attribute sets -->
14+
* <product_attribute_sets>{int}</product_attribute_sets>
15+
*
16+
* <!-- Number of attributes per set -->
17+
* <product_attribute_sets_attributes>{int}</product_attribute_sets_attributes>
18+
*
19+
* <!-- Number of values per attribute -->
20+
* <product_attribute_sets_attributes_values>{int}</product_attribute_sets_attributes_values>
21+
*
22+
* @see setup/performance-toolkit/profiles/ce/small.xml
1123
*/
1224
class AttributeSetsFixture extends Fixture
1325
{

setup/src/Magento/Setup/Fixtures/CartPriceRulesFixture.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
namespace Magento\Setup\Fixtures;
88

99
/**
10-
* Class CartPriceRulesFixture
10+
* Fixture for generating cart price rules
11+
*
12+
* Support the following format:
13+
* <!-- Number of cart price rules -->
14+
* <cart_price_rules>{int}</cart_price_rules>
15+
*
16+
* <!-- Number of conditions per rule -->
17+
* <cart_price_rules_floor>{int}</cart_price_rules_floor>
18+
*
19+
* @see setup/performance-toolkit/profiles/ce/small.xml
1120
*/
1221
class CartPriceRulesFixture extends Fixture
1322
{

setup/src/Magento/Setup/Fixtures/CatalogPriceRulesFixture.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
namespace Magento\Setup\Fixtures;
88

99
/**
10-
* Class CatalogPriceRulesFixture
10+
* Fixture for generating catalog price rules
11+
*
12+
* Support the following format:
13+
* <!-- Number of catalog price rules -->
14+
* <catalog_price_rules>{int}</catalog_price_rules>
15+
*
16+
* @see setup/performance-toolkit/profiles/ce/small.xml
1117
*/
1218
class CatalogPriceRulesFixture extends Fixture
1319
{

setup/src/Magento/Setup/Fixtures/ImagesFixture.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public function __construct(
142142

143143
/**
144144
* {@inheritdoc}
145+
* @throws \Exception
145146
*/
146147
public function execute()
147148
{

setup/src/Magento/Setup/Fixtures/OrdersFixture.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,33 @@
1313
* Fixture generator for Order entities with configurable number of different types of order items.
1414
* Optionally generates inactive quotes for generated orders.
1515
*
16+
* Support the following format:
17+
* <!-- Is is nescessary to enable quotes for orders -->
18+
* <order_quotes_enable>{bool}</order_quotes_enable>
19+
*
20+
* <!-- Min number of simple products per each order -->
21+
* <order_simple_product_count_from>{int}</order_simple_product_count_from>
22+
*
23+
* <!-- Max number of simple products per each order -->
24+
* <order_simple_product_count_to>{int}</order_simple_product_count_to>
25+
*
26+
* <!-- Min number of configurable products per each order -->
27+
* <order_configurable_product_count_from>{int}</order_configurable_product_count_from>
28+
*
29+
* <!-- Max number of configurable products per each order -->
30+
* <order_configurable_product_count_to>{int}</order_configurable_product_count_to>
31+
*
32+
* <!-- Min number of big configurable products (with big amount of options) per each order -->
33+
* <order_big_configurable_product_count_from>{int}</order_big_configurable_product_count_from>
34+
*
35+
* <!-- Max number of big configurable products (with big amount of options) per each order -->
36+
* <order_big_configurable_product_count_to>{int}</order_big_configurable_product_count_to>
37+
*
38+
* <!-- Number of orders to generate -->
39+
* <orders>{int}</orders>
40+
*
41+
* @see setup/performance-toolkit/profiles/ce/small.xml
42+
*
1643
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1744
*/
1845
class OrdersFixture extends Fixture

setup/src/Magento/Setup/Fixtures/StoresFixture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <assign_entities_to_all_websites>1<assign_entities_to_all_websites/>
3434
* means that all stores will have the same root category
3535
*
36-
* <assign_entities_to_all_websites>1<assign_entities_to_all_websites/>
36+
* <assign_entities_to_all_websites>0<assign_entities_to_all_websites/>
3737
* means that all stores will have unique root category
3838
*
3939
* @see setup/performance-toolkit/profiles/ce/small.xml

setup/src/Magento/Setup/Fixtures/TaxRatesFixture.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
namespace Magento\Setup\Fixtures;
88

99
/**
10-
* Class TaxRatesFixture
10+
* Fixture for generating tax rates fixture
11+
*
12+
* Support the following format:
13+
* <!-- Accepts name of csv file with tax rates (<path to magento folder>/setup/src/Magento/Setup/Fixtures/_files) -->
14+
* <tax_rates_file>{csv file name}</tax_rates_file>
15+
*
16+
* @see setup/performance-toolkit/profiles/ce/small.xml
1117
*/
1218
class TaxRatesFixture extends Fixture
1319
{

0 commit comments

Comments
 (0)