The Mercado Pago plugin for Magento 2 allows you to expand the functionalities of your online store and offer a unique payment experience for your customers.
For a better experience, you will be redirected to our site by clicking on the links below:
- Requirements to integrate
- Features
- Installation
- Configure Checkout Custom
- Configure Checkout Pro
- Payment Notification Status Settings
Para una mejor experiencia, será redirigido a nuestro sitio haciendo clic en los links a abajo:
- Requisitos para integrar
- Instalación
- Configurar Checkout Custom
- Configurar Checkout de Pro
- Configuración de estado de las notificaciones de Pago
Para uma melhor experiência, você será redirecionado para o nosso site, clicando nos links abaixo:
- Requisitos para integrar
- Instalação
- Configurar Checkout Custom
- Configurar Checkout Pro
- Configurações de status de Notificações de Pagamento
Something's wrong? Get in touch with our support
This description is intended to help the developer to run the plugin unit tests
The plugin is divided into two directories in src:
- Core : where are the codes for all the functionalities
- Test/Unit: where are the unit tests
"Test/Unit" mirrors the Core folder, so, if in the Core folder I have a "foo" directory with the file "bar":
Core/foo/bar.php
means that the test folder should look like this (same folder, suffixing the file with "Test"):
Test/Unit/foo/barTest.php
Once this plugin is installed in your development environment with Magento, use the phpUnit that is already installed in magento to run the tests. You can do this by calling phpUnit inside Magento's "vendor" directory and pointing to the plugin's installation location (which will probably be app/code/MercadoPago), for example:
magento/vendor/phpunit/phpunit/phpunit --whitelist magento2/app/code/MercadoPago/Core magento/app/code/MercadoPago/Test
magento/vendor/phpunit/phpunit/phpunit
: calls phpUnit--whitelist magento2/app/code/MercadoPago/Core
: Whitelist for code coverage analysis.--whitelist magento2/app/code/MercadoPago/Test
: Directory where phpUnit will find the tests.
Every time you submit a pull request to this repository, a workflow will be triggered that will run the unit tests. If your unit test fails, you won't be able to merge the pull request.