Skip to content

Commit

Permalink
Merge pull request #5937 from magento-pangolin/MQE-2044
Browse files Browse the repository at this point in the history
MQE-2044
  • Loading branch information
KevinBKozan committed Aug 2, 2020
2 parents 900f4d4 + a52bfc5 commit 9b0e514
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ protected function setUp(): void
parent::setUp();
}

/**
* @return string
*/
private function getEdition()
{
return trim(file_get_contents(__DIR__ . '/_files/edition'));
}

/**
* teardown
*/
Expand Down Expand Up @@ -117,7 +109,7 @@ public static function setUpBeforeClass(): void
*/
public function testExecute()
{
$profile = BP . "/setup/performance-toolkit/profiles/{$this->getEdition()}/small.xml";
$profile = realpath(__DIR__ . "/_files/min_profile.xml");
$this->commandTester->execute(
[
GenerateFixturesCommand::PROFILE_ARGUMENT => $profile,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xi="http://www.w3.org/2001/XInclude">
<profile>
<admin_users>2</admin_users><!-- Number of admin users to generate -->
<websites>1</websites> <!-- Number of websites to generate -->
<store_groups>1</store_groups> <!--Number of stores-->
<store_views>1</store_views> <!-- Number of store views -->
<assign_entities_to_all_websites>0</assign_entities_to_all_websites> <!-- Whether to assign all products per each website -->
<simple_products>1</simple_products> <!-- Simple products count -->
<configurable_products> <!-- Configurable product -->
<config>
<attributes>
<attribute>
<options>3</options>
<swatches>image</swatches>
</attribute>
<attribute>
<options>8</options>
</attribute>
</attributes>
<sku>Configurable Product %s</sku>
<products>16</products>
</config>
</configurable_products>
<product-images>
<images-count>1</images-count>
<images-per-product>1</images-per-product>
</product-images>
<categories>1</categories> <!-- Number of categories to generate -->
<categories_nesting_level>1</categories_nesting_level> <!-- Nesting level for categories -->
<customers>1</customers> <!-- Number of customers to generate -->

<catalog_price_rules>1</catalog_price_rules> <!-- Number of catalog price rules -->
<cart_price_rules>1</cart_price_rules> <!-- Number of cart price rules -->
<cart_price_rules_floor>1</cart_price_rules_floor>
<coupon_codes>1</coupon_codes> <!-- Number of coupon codes -->

<product_attribute_sets>1</product_attribute_sets> <!-- Number of product attribute sets -->
<product_attribute_sets_attributes>1</product_attribute_sets_attributes> <!-- Number of attributes per set -->
<product_attribute_sets_attributes_values>1</product_attribute_sets_attributes_values> <!-- Number of values per attribute -->

<order_quotes_enable>true</order_quotes_enable>
<order_simple_product_count_from>1</order_simple_product_count_from>
<order_simple_product_count_to>1</order_simple_product_count_to>
<orders>1</orders> <!-- Orders count -->

<tax_rates_file>tax_rates_small.csv</tax_rates_file> <!-- Tax rates file in fixtures directory-->

<configs> <!-- Config variables and values for change -->
<config>
<path>admin/security/use_form_key</path>
<scope>default</scope>
<scopeId>0</scopeId>
<value>0</value>
</config>
<config>
<path>admin/security/session_lifetime</path>
<scope>default</scope>
<scopeId>0</scopeId>
<value>7200</value>
</config>
<config>
<path>admin/security/admin_account_sharing</path>
<scope>default</scope>
<scopeId>0</scopeId>
<value>1</value>
</config>
<config>
<path>carriers/flatrate/active</path>
<scope>default</scope>
<scopeId>0</scopeId>
<value>1</value>
</config>
</configs>
<indexers> <!-- Indexer mode value (true - Update by Schedule, false - Update on Save) -->
<indexer>
<id>catalog_category_product</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>catalog_product_category</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>catalog_product_price</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>catalog_product_attribute</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>cataloginventory_stock</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>catalogrule_rule</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>catalogrule_product</id>
<set_scheduled>false</set_scheduled>
</indexer>
<indexer>
<id>catalogsearch_fulltext</id>
<set_scheduled>false</set_scheduled>
</indexer>
</indexers>
<xi:include href="../../../../../../../../../setup/performance-toolkit/config/searchTermsLarge.xml" />
<xi:include href="../../../../../../../../../setup/performance-toolkit/config/attributeSets.xml" />
<xi:include href="../../../../../../../../../setup/performance-toolkit/config/searchConfig.xml" />
<xi:include href="../../../../../../../../../setup/performance-toolkit/config/customerConfig.xml" />
<xi:include href="../../../../../../../../../setup/performance-toolkit/config/description.xml" />
<xi:include href="../../../../../../../../../setup/performance-toolkit/config/shortDescription.xml" />
</profile>
</config>

0 comments on commit 9b0e514

Please sign in to comment.