forked from magento/graphql-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/2.3-develop' into MC-15845
- Loading branch information
Showing
99 changed files
with
2,979 additions
and
875 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,42 @@ | ||
# Magento_Authorizenet module | ||
|
||
The Magento_Authorizenet module implements the integration with the Authorize.Net payment gateway and makes the latter available as a payment method in Magento. | ||
|
||
## Extensibility | ||
|
||
Extension developers can interact with the Magento_Authorizenet module. For more information about the Magento extension mechanism, see [Magento plug-ins](https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html). | ||
|
||
[The Magento dependency injection mechanism](https://devdocs.magento.com/guides/v2.3/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento_Authorizenet module. | ||
|
||
### Events | ||
|
||
This module dispatches the following events: | ||
|
||
- `checkout_directpost_placeOrder` event in the `\Magento\Authorizenet\Controller\Directpost\Payment\Place::placeCheckoutOrder()` method. Parameters: | ||
- `result` is a data object (`\Magento\Framework\DataObject` class). | ||
- `action` is a controller object (`\Magento\Authorizenet\Controller\Directpost\Payment\Place`). | ||
|
||
- `order_cancel_after` event in the `\Magento\Authorizenet\Model\Directpost::declineOrder()` method. Parameters: | ||
- `order` is an order object (`\Magento\Sales\Model\Order` class). | ||
|
||
|
||
This module observes the following events: | ||
|
||
- `checkout_submit_all_after` event in the `Magento\Authorizenet\Observer\SaveOrderAfterSubmitObserver` file. | ||
- `checkout_directpost_placeOrder` event in the `Magento\Authorizenet\Observer\AddFieldsToResponseObserver` file. | ||
|
||
For information about events in Magento 2, see [Events and observers](http://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html#events). | ||
|
||
### Layouts | ||
|
||
This module introduces the following layouts and layout handles in the `view/adminhtml/layout` directory: | ||
|
||
- `adminhtml_authorizenet_directpost_payment_redirect` | ||
|
||
This module introduces the following layouts and layout handles in the `view/frontend/layout` directory: | ||
|
||
- `authorizenet_directpost_payment_backendresponse` | ||
- `authorizenet_directpost_payment_redirect` | ||
- `authorizenet_directpost_payment_response` | ||
|
||
For more information about layouts in Magento 2, see the [Layout documentation](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-overview.html). |
126 changes: 126 additions & 0 deletions
126
app/code/Magento/Bundle/Test/Mftf/Test/AdminAssociateBundleProductToWebsitesTest.xml
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,126 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminAssociateBundleProductToWebsitesTest"> | ||
<annotations> | ||
<features value="Bundle"/> | ||
<stories value="Create/Edit bundle product in Admin"/> | ||
<title value="Admin should be able to associate bundle product to websites"/> | ||
<description value="Admin should be able to associate bundle product to websites"/> | ||
<testCaseId value="MC-3344"/> | ||
<severity value="CRITICAL"/> | ||
<group value="bundle"/> | ||
<group value="catalog"/> | ||
</annotations> | ||
<before> | ||
<!-- Configure Store URLs --> | ||
<magentoCLI command="config:set {{StorefrontEnableAddStoreCodeToUrls.path}} {{StorefrontEnableAddStoreCodeToUrls.value}}" stepKey="setAddStoreCodeToUrlsToYes"/> | ||
|
||
<!-- Create category --> | ||
<createData entity="SimpleSubCategory" stepKey="createCategory"/> | ||
|
||
<!-- Create Simple product --> | ||
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/> | ||
|
||
<!-- Create Bundle product --> | ||
<createData entity="ApiBundleProductPriceViewRange" stepKey="createBundleProduct"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<createData entity="DropDownBundleOption" stepKey="bundleOption"> | ||
<requiredEntity createDataKey="createBundleProduct"/> | ||
</createData> | ||
<createData entity="ApiBundleLink" stepKey="createNewBundleLink"> | ||
<requiredEntity createDataKey="createBundleProduct"/> | ||
<requiredEntity createDataKey="bundleOption"/> | ||
<requiredEntity createDataKey="createSimpleProduct"/> | ||
</createData> | ||
|
||
<!-- Reindex --> | ||
<magentoCLI command="indexer:reindex" stepKey="reindex"/> | ||
|
||
<!-- Login as admin --> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
|
||
<!--Create website--> | ||
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createSecondWebsite"> | ||
<argument name="newWebsiteName" value="{{secondCustomWebsite.name}}"/> | ||
<argument name="websiteCode" value="{{secondCustomWebsite.code}}"/> | ||
</actionGroup> | ||
<!-- Create second store --> | ||
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createSecondStoreGroup"> | ||
<argument name="website" value="{{secondCustomWebsite.name}}"/> | ||
<argument name="storeGroupName" value="{{SecondStoreGroupUnique.name}}"/> | ||
<argument name="storeGroupCode" value="{{SecondStoreGroupUnique.code}}"/> | ||
</actionGroup> | ||
<!-- Create second store view --> | ||
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createSecondStoreView"> | ||
<argument name="StoreGroup" value="SecondStoreGroupUnique"/> | ||
<argument name="customStore" value="SecondStoreUnique"/> | ||
</actionGroup> | ||
</before> | ||
<after> | ||
<!-- Disabled Store URLs --> | ||
<magentoCLI command="config:set {{StorefrontDisableAddStoreCodeToUrls.path}} {{StorefrontDisableAddStoreCodeToUrls.value}}" stepKey="setAddStoreCodeToUrlsToNo"/> | ||
|
||
<!-- Delete simple product --> | ||
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> | ||
<!-- Delete bundle product --> | ||
<deleteData createDataKey="createBundleProduct" stepKey="deleteBundleProduct"/> | ||
|
||
<!-- Delete second website --> | ||
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite"> | ||
<argument name="websiteName" value="{{secondCustomWebsite.name}}"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="NavigateToAndResetProductGridToDefaultView" stepKey="resetProductGridFilter"/> | ||
|
||
<!-- Admin logout --> | ||
<actionGroup ref="logout" stepKey="adminLogout"/> | ||
</after> | ||
|
||
<!-- Open product page and assign grouped project to second website --> | ||
<actionGroup ref="filterAndSelectProduct" stepKey="openAdminProductPage"> | ||
<argument name="productSku" value="$$createBundleProduct.sku$$"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminAssignProductInWebsiteActionGroup" stepKey="assignProductToSecondWebsite"> | ||
<argument name="website" value="{{secondCustomWebsite.name}}"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminUnassignProductInWebsiteActionGroup" stepKey="unassignProductFromDefaultWebsite"> | ||
<argument name="website" value="{{_defaultWebsite.name}}"/> | ||
</actionGroup> | ||
<actionGroup ref="saveProductForm" stepKey="saveGroupedProduct"/> | ||
|
||
<!-- Assert product is assigned to Second website --> | ||
<actionGroup ref="AssertProductIsAssignedToWebsite" stepKey="seeCustomWebsiteIsChecked"> | ||
<argument name="website" value="{{secondCustomWebsite.name}}"/> | ||
</actionGroup> | ||
|
||
<!-- Assert product is not assigned to Main website --> | ||
<actionGroup ref="AssertProductIsNotAssignedToWebsite" stepKey="seeMainWebsiteIsNotChecked"> | ||
<argument name="website" value="{{_defaultWebsite.name}}"/> | ||
</actionGroup> | ||
|
||
<!-- Go to frontend and open product on Main website --> | ||
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage"> | ||
<argument name="productUrl" value="$$createBundleProduct.custom_attributes[url_key]$$"/> | ||
</actionGroup> | ||
|
||
<!-- Assert 404 page --> | ||
<actionGroup ref="StorefrontAssertPageNotFoundErrorOnProductDetailPageActionGroup" stepKey="assertPageNotFoundError"> | ||
<argument name="product" value="$$createBundleProduct$$"/> | ||
</actionGroup> | ||
|
||
<!-- Assert product is present at Second website --> | ||
<actionGroup ref="StorefrontOpenProductPageUsingStoreCodeInUrlActionGroup" stepKey="openProductPageUsingStoreCodeInUrl"> | ||
<argument name="product" value="$$createBundleProduct$$"/> | ||
<argument name="storeView" value="SecondStoreUnique"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |
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
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
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.