-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from magento-qmt/PR
Fixed issue: - MAGETWO-55970 [FT] Constraint AssertProductQtyInMiniShoppingCart is absent Functional tests: - MTA-3383 Catalog Widget: Extend existing functional automated tests. Cache - MTA-3242 Reports: Extend existing functional automated tests - MTA-3241 Catalog Widget: Extend existing functional automated tests - MTA-3237 Downloadable: Extend existing functional automated tests - MTA-3483 Create pull request and deliver extended functional tests to mainline - MTA-3437 \Magento\Config\Test\Handler\ConfigData\Curl handler doesn't allow to save values for different website scopes.
- Loading branch information
Showing
62 changed files
with
1,247 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../vendor/magento/mtf/Magento/Mtf/Repository/etc/repository.xsd"> | ||
|
||
<repository class="Magento\Catalog\Test\Repository\CatalogAttributeSet"> | ||
<dataset name="default"> | ||
<field name="attribute_set_id" xsi:type="number">4</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Catalog\Test\Repository\CatalogProductAttribute"> | ||
<dataset name="quantity_and_stock_status"> | ||
<field name="attribute_id" xsi:type="number">113</field> | ||
</dataset> | ||
|
||
<dataset name="tax_class_id"> | ||
<field name="attribute_id" xsi:type="number">172</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Catalog\Test\Repository\Category"> | ||
<dataset name="default_category"> | ||
<field name="parent_id" xsi:type="number">1</field> | ||
<field name="id" xsi:type="number">2</field> | ||
</dataset> | ||
|
||
<dataset name="root_category"> | ||
<field name="parent_id" xsi:type="number">1</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Customer\Test\Repository\CustomerGroup"> | ||
<dataset name="General"> | ||
<field name="customer_group_id" xsi:type="number">1</field> | ||
</dataset> | ||
|
||
<dataset name="Retailer"> | ||
<field name="customer_group_id" xsi:type="number">3</field> | ||
</dataset> | ||
|
||
<dataset name="Wholesale"> | ||
<field name="customer_group_id" xsi:type="number">2</field> | ||
</dataset> | ||
|
||
<dataset name="all_customer_groups"> | ||
<field name="customer_group_id" xsi:type="number">0</field> | ||
</dataset> | ||
|
||
<dataset name="NOT_LOGGED_IN"> | ||
<field name="customer_group_id" xsi:type="number">0</field> | ||
</dataset> | ||
|
||
<dataset name="ALL_GROUPS"> | ||
<field name="customer_group_id" xsi:type="number">32000</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Store\Test\Repository\Store"> | ||
<dataset name="default"> | ||
<field name="store_id" xsi:type="number">1</field> | ||
</dataset> | ||
|
||
<dataset name="default_store_view"> | ||
<field name="store_id" xsi:type="number">1</field> | ||
</dataset> | ||
|
||
<dataset name="all_store_views"> | ||
<field name="store_id" xsi:type="number">0</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Store\Test\Repository\StoreGroup"> | ||
<dataset name="default"> | ||
<field name="group_id" xsi:type="number">1</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Store\Test\Repository\Website"> | ||
<dataset name="default"> | ||
<field name="website_id" xsi:type="number">1</field> | ||
</dataset> | ||
|
||
<dataset name="all_websites"> | ||
<field name="website_id" xsi:type="number">0</field> | ||
</dataset> | ||
|
||
<dataset name="main_website"> | ||
<field name="website_id" xsi:type="number">1</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Tax\Test\Repository\TaxClass"> | ||
<dataset name="taxable_goods"> | ||
<field name="id" xsi:type="number">2</field> | ||
<field name="class_id" xsi:type="number">2</field> | ||
</dataset> | ||
|
||
<dataset name="retail_customer"> | ||
<field name="class_id" xsi:type="number">3</field> | ||
<field name="id" xsi:type="number">3</field> | ||
</dataset> | ||
|
||
<dataset name="None"> | ||
<field name="id" xsi:type="number">0</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Tax\Test\Repository\TaxRate"> | ||
<dataset name="US-CA-Rate_1"> | ||
<field name="tax_calculation_rate_id" xsi:type="number">1</field> | ||
<field name="tax_region_id" xsi:type="number">12</field> | ||
</dataset> | ||
|
||
<dataset name="US-IL-Rate_1"> | ||
<field name="tax_region_id" xsi:type="number">23</field> | ||
</dataset> | ||
|
||
<dataset name="US-NY-Rate_1"> | ||
<field name="tax_calculation_rate_id" xsi:type="number">2</field> | ||
<field name="tax_region_id" xsi:type="number">43</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\User\Test\Repository\Role"> | ||
<dataset name="Administrators"> | ||
<field name="role_id" xsi:type="number">1</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\User\Test\Repository\User"> | ||
<dataset name="default"> | ||
<field name="user_id" xsi:type="number">1</field> | ||
</dataset> | ||
</repository> | ||
|
||
<repository class="Magento\Catalog\Test\Repository\CatalogProductSimple"> | ||
<dataset name="sample_data_simple_product"> | ||
<field name="id" xsi:type="number">1</field> | ||
</dataset> | ||
</repository> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
dev/tests/functional/lib/Magento/Mtf/Util/Command/Cli/Cache.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
/** | ||
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\Mtf\Util\Command\Cli; | ||
|
||
use Magento\Mtf\Util\Command\Cli; | ||
|
||
/** | ||
* Handle cache for tests executions. | ||
*/ | ||
class Cache extends Cli | ||
{ | ||
/** | ||
* Parameter for flush cache command. | ||
*/ | ||
const PARAM_CACHE_FLUSH = 'cache:flush'; | ||
|
||
/** | ||
* Parameter for cache disable command. | ||
*/ | ||
const PARAM_CACHE_DISABLE = 'cache:disable'; | ||
|
||
/** | ||
* Parameter for cache enable command. | ||
*/ | ||
const PARAM_CACHE_ENABLE = 'cache:enable'; | ||
|
||
/** | ||
* Flush cache. | ||
* | ||
* @return void | ||
*/ | ||
public function flush() | ||
{ | ||
parent::execute(Cache::PARAM_CACHE_FLUSH); | ||
} | ||
|
||
/** | ||
* Disable all cache or one cache type. | ||
* | ||
* @param string $cacheType [optional] | ||
* @return void | ||
*/ | ||
public function disableCache($cacheType = null) | ||
{ | ||
parent::execute(Cache::PARAM_CACHE_DISABLE . ($cacheType ? " $cacheType" : '')); | ||
} | ||
|
||
/** | ||
* Enable all cache or one cache type. | ||
* | ||
* @param string $cacheType [optional] | ||
* @return void | ||
*/ | ||
public function enableCache($cacheType = null) | ||
{ | ||
parent::execute(Cache::PARAM_CACHE_ENABLE . ($cacheType ? " $cacheType" : '')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ests/functional/tests/app/Magento/AdminNotification/Test/Block/System/Messages/System.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\AdminNotification\Test\Block\System\Messages; | ||
|
||
use Magento\Mtf\Block\Block; | ||
|
||
/** | ||
* System message block. | ||
*/ | ||
class System extends Block | ||
{ | ||
/** | ||
* Get block text content. | ||
* | ||
* @return string | ||
*/ | ||
public function getContent() | ||
{ | ||
return $this->_rootElement->getText(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.