Download the PHP package seec/behat-magento2-extension without Composer
On this page you can find all versions of the php package seec/behat-magento2-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package behat-magento2-extension
Behat Magento2 Extension
This is a fork of the BehatMagentoExtension, which is compatible with PHP8.1 and greater. This should ensure successful end-to-end testing of Magento 2 projects.
The BehatMagento2Extension
provides a custom service container for Behat which allows to inject Magento services into
Behat Contexts and Behat helper services.
Installation
The recommended installation method is through Composer:
Usage
In order to bootstrap Magento2 into your Behat suite, some modifications to the used behat.yml are required.
Note: If you use the Hooks provided by this package, your Magento Database will be purged and refilled with your fixtures after each individual test. This adds extra time to the execution but leaves your database also with DUMMY data. Do not use the hooks if you want to keep your database intact. Do not use it on a production server if you don't know what you are doing.
Testing
If you want to contribute to this module, make sure to run tests locally before committing. Docker Compose Containers are set-up to run all tests for all PHP versions automatically, so testing is very easy.
Code Quality
We aim for a unified code style; thus we enforce ECS and PHPStan onto our code. Make sure to run the following commands before committing:
Documentation
The official documentation is available here.
All versions of behat-magento2-extension with dependencies
behat/behat Version ^3.7
magento/framework Version 103.0.6
magento/module-store Version 101.1.6
container-interop/container-interop Version ^1.2
symfony/dependency-injection Version ^6
symfony/event-dispatcher Version ^6
magento/module-authorization Version *
magento/module-user Version *
magento/module-backend Version *
friends-of-behat/page-object-extension Version ^0.3.2
friends-of-behat/suite-settings-extension Version ^1.1
seec/behat-test-runner Version ^8
friends-of-behat/symfony-extension Version ^2.0
react/promise Version ~2.0