Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
Merge branch '2.2-develop' into 2.2-develop-pangolin
Browse files Browse the repository at this point in the history
  • Loading branch information
aljcalandra committed Jul 6, 2018
2 parents 1bb5ac9 + aa6b899 commit f6895e7
Show file tree
Hide file tree
Showing 1,675 changed files with 16,048 additions and 9,399 deletions.
144 changes: 144 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions app/code/Magento/AdminNotification/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Admin Notification Functional Tests

The Functional Test Module for **Magento Admin Notification** module.
20 changes: 20 additions & 0 deletions app/code/Magento/AdminNotification/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "magento/functional-test-module-admin-notification",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-media-storage": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0",
"magento/functional-test-module-ui": "100.0.0-dev"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
2 changes: 1 addition & 1 deletion app/code/Magento/AdminNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lib-libxml": "*"
},
"type": "magento2-module",
"version": "100.2.2",
"version": "100.2.3",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class AdvancedPricing extends \Magento\CatalogImportExport\Model\Export\Product
* @param \Magento\CatalogImportExport\Model\Export\RowCustomizerInterface $rowCustomizer
* @param ImportProduct\StoreResolver $storeResolver
* @param \Magento\Customer\Api\GroupRepositoryInterface $groupRepository
* @throws \Magento\Framework\Exception\LocalizedException
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
Expand Down Expand Up @@ -192,6 +191,7 @@ protected function initTypeModels()
* Export process
*
* @return string
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function export()
{
Expand Down Expand Up @@ -461,6 +461,7 @@ protected function getTierPrices(array $productLinksIds, $table)
*
* @param int $websiteId
* @return string
* @throws \Magento\Framework\Exception\LocalizedException
*/
protected function _getWebsiteCode(int $websiteId): string
{
Expand Down Expand Up @@ -491,6 +492,8 @@ protected function _getWebsiteCode(int $websiteId): string
* @param int $customerGroupId
* @param int $allGroups
* @return string
* @throws \Magento\Framework\Exception\LocalizedException
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
protected function _getCustomerGroupById(
int $customerGroupId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Magento\CatalogImportExport\Model\Import\Product as ImportProduct;
use Magento\CatalogImportExport\Model\Import\Product\RowValidatorInterface as ValidatorInterface;
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
use Magento\Framework\App\ResourceConnection;

/**
* Class AdvancedPricing
Expand Down Expand Up @@ -619,6 +618,7 @@ protected function processCountNewPrices(array $tierPrices)
* Get product entity link field
*
* @return string
* @throws \Exception
*/
private function getProductEntityLinkField()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct($validators = [])
*
* @param array $value
* @return bool
* @throws \Zend_Validate_Exception
*/
public function isValid($value)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Advanced Pricing Import Export Functional Tests

The Functional Test Module for **Magento Advanced Pricing Import Export** module.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "magento/functional-test-module-advanced-pricing-import-export",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-catalog": "100.0.0-dev",
"magento/functional-test-module-catalog-inventory": "100.0.0-dev",
"magento/functional-test-module-eav": "100.0.0-dev",
"magento/functional-test-module-import-export": "100.0.0-dev",
"magento/functional-test-module-catalog-import-export": "100.0.0-dev",
"magento/functional-test-module-customer": "100.0.0-dev",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ protected function tearDown()
* @param $object
* @param $property
* @return mixed
* @throws \ReflectionException
*/
protected function getPropertyValue($object, $property)
{
Expand All @@ -362,6 +363,8 @@ protected function getPropertyValue($object, $property)
* @param $object
* @param $property
* @param $value
* @return mixed
* @throws \ReflectionException
*/
protected function setPropertyValue(&$object, $property, $value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ public function isValidAddMessagesCallDataProvider()
* @param object $object
* @param string $property
* @return mixed
* @throws \ReflectionException
*/
protected function getPropertyValue($object, $property)
{
Expand All @@ -363,6 +364,7 @@ protected function getPropertyValue($object, $property)
* @param string $property
* @param mixed $value
* @return object
* @throws \ReflectionException
*/
protected function setPropertyValue(&$object, $property, $value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ public function testGetEntityTypeCode()
* Test method validateRow against its result.
*
* @dataProvider validateRowResultDataProvider
* @param array $rowData
* @param string|null $behavior
* @param bool $expectedResult
* @throws \ReflectionException
*/
public function testValidateRowResult($rowData, $behavior, $expectedResult)
{
Expand All @@ -234,6 +238,10 @@ public function testValidateRowResult($rowData, $behavior, $expectedResult)
* Test method validateRow whether AddRowError is called.
*
* @dataProvider validateRowAddRowErrorCallDataProvider
* @param array $rowData
* @param string|null $behavior
* @param string $error
* @throws \ReflectionException
*/
public function testValidateRowAddRowErrorCall($rowData, $behavior, $error)
{
Expand Down Expand Up @@ -324,6 +332,13 @@ public function testSaveAdvancedPricing()
* Take into consideration different data and check relative internal calls.
*
* @dataProvider saveAndReplaceAdvancedPricesAppendBehaviourDataProvider
* @param array $data
* @param string $tierCustomerGroupId
* @param string $groupCustomerGroupId
* @param string $tierWebsiteId
* @param string $groupWebsiteId
* @param array $expectedTierPrices
* @throws \ReflectionException
*/
public function testSaveAndReplaceAdvancedPricesAppendBehaviourDataAndCalls(
$data,
Expand Down Expand Up @@ -956,6 +971,7 @@ public function processCountExistingPricesDataProvider()
* @param $object
* @param $property
* @return mixed
* @throws \ReflectionException
*/
protected function getPropertyValue($object, $property)
{
Expand All @@ -972,6 +988,8 @@ protected function getPropertyValue($object, $property)
* @param $object
* @param $property
* @param $value
* @return mixed
* @throws \ReflectionException
*/
protected function setPropertyValue(&$object, $property, $value)
{
Expand All @@ -990,7 +1008,8 @@ protected function setPropertyValue(&$object, $property, $value)
* @param string $method
* @param array $args
*
* @return mixed the method result.
* @return mixed
* @throws \ReflectionException
*/
private function invokeMethod($object, $method, $args = [])
{
Expand All @@ -1007,6 +1026,7 @@ private function invokeMethod($object, $method, $args = [])
* @param array $methods
*
* @return \PHPUnit_Framework_MockObject_MockObject
* @throws \ReflectionException
*/
private function getAdvancedPricingMock($methods = [])
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AdvancedPricingImportExport/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"magento/framework": "101.0.*"
},
"type": "magento2-module",
"version": "100.2.2",
"version": "100.2.3",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Analytics/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Analytics Functional Tests

The Functional Test Module for **Magento Analytics** module.
20 changes: 20 additions & 0 deletions app/code/Magento/Analytics/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "magento/functional-test-module-analytics",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-config": "100.0.0-dev",
"magento/functional-test-module-integration": "100.0.0-dev",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
2 changes: 1 addition & 1 deletion app/code/Magento/Analytics/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"magento/framework": "101.0.*"
},
"type": "magento2-module",
"version": "100.2.1",
"version": "100.2.2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Authorization/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Authorization Functional Tests

The Functional Test Module for **Magento Authorization** module.
17 changes: 17 additions & 0 deletions app/code/Magento/Authorization/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "magento/functional-test-module-authorization",
"description": "Authorization module provides access to Magento ACL functionality.",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
2 changes: 1 addition & 1 deletion app/code/Magento/Authorization/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"magento/framework": "101.0.*"
},
"type": "magento2-module",
"version": "100.2.0",
"version": "100.2.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Authorizenet/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Authorizenet Functional Tests

The Functional Test Module for **Magento Authorizenet** module.
25 changes: 25 additions & 0 deletions app/code/Magento/Authorizenet/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "magento/functional-test-module-authorizenet",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-sales": "100.0.0-dev",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/functional-test-module-quote": "100.0.0-dev",
"magento/functional-test-module-checkout": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-payment": "100.0.0-dev",
"magento/functional-test-module-catalog": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"suggest": {
"magento/functional-test-module-config": "100.0.0-dev"
},
"type": "magento2-test",
"license": [
"proprietary"
]
}
2 changes: 1 addition & 1 deletion app/code/Magento/Authorizenet/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"magento/module-config": "101.0.*"
},
"type": "magento2-module",
"version": "100.2.0",
"version": "100.2.1",
"license": [
"proprietary"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public function execute()
try {
$model->delete();

$this->_eventManager->dispatch('store_delete', ['store' => $model]);

$this->messageManager->addSuccess(__('You deleted the store view.'));
return $redirectResult->setPath('adminhtml/*/');
} catch (\Magento\Framework\Exception\LocalizedException $e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ private function processWebsiteSave($postData)
*/
private function processStoreSave($postData)
{
$eventName = 'store_edit';
/** @var \Magento\Store\Model\Store $storeModel */
$storeModel = $this->_objectManager->create(\Magento\Store\Model\Store::class);
$postData['store']['name'] = $this->filterManager->removeTags($postData['store']['name']);
Expand All @@ -56,7 +55,6 @@ private function processStoreSave($postData)
$storeModel->setData($postData['store']);
if ($postData['store']['store_id'] == '') {
$storeModel->setId(null);
$eventName = 'store_add';
}
$groupModel = $this->_objectManager->create(
\Magento\Store\Model\Group::class
Expand All @@ -70,8 +68,6 @@ private function processStoreSave($postData)
);
}
$storeModel->save();
$this->_objectManager->get(\Magento\Store\Model\StoreManager::class)->reinitStores();
$this->_eventManager->dispatch($eventName, ['store' => $storeModel]);
$this->messageManager->addSuccess(__('You saved the store view.'));

return $postData;
Expand Down Expand Up @@ -102,7 +98,6 @@ private function processGroupSave($postData)
);
}
$groupModel->save();
$this->_eventManager->dispatch('store_group_save', ['group' => $groupModel]);
$this->messageManager->addSuccess(__('You saved the store.'));

return $postData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="LoginToAdminActionGroup">
<amOnPage url="{{AdminLoginPage.url}}" stepKey="amOnAdminLoginPage"/>
<fillField selector="{{AdminLoginFormSection.username}}" userInput="{{_ENV.MAGENTO_ADMIN_USERNAME}}" stepKey="fillUsername"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="LoginActionGroup">
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}" stepKey="navigateToAdmin"/>
<fillField userInput="{{_ENV.MAGENTO_ADMIN_USERNAME}}" selector="{{AdminLoginFormSection.username}}" stepKey="fillUsername"/>
Expand Down
Loading

0 comments on commit f6895e7

Please sign in to comment.