Behat Magento 2 Extension
latest
  • Quick start
  • Installation
  • Configuration
  • Usage Examples
Behat Magento 2 Extension
  • Docs »
  • Behat Magento 2 Extension
  • Edit on GitHub

Behat Magento 2 Extension¶

This Behat extension provides provides a custom service container for Behat which allows to inject Magento services into Behat Contexts and Behat helper services.

Guide¶

  • Quick start
    • Install Behat
    • Install the Extension
    • Setup the Behat configuration
    • Verify the configuration
  • Installation
    • Requirements
    • Using Composer
  • Configuration
    • Enable the Extension
    • Configure the Service Container
    • Enable Autowiring for Contexts
    • Configure the Magento area
    • Configure Magento DI overrides
    • Configure Behat Helper Services
    • Inject dependencies to helper services
    • Enable Autowiring for helper services
    • Configure the Magento bootstrap path
  • Usage Examples
    • Manually inject service to Behat Context as constructor argument
    • Automatically inject service to Behat Context as constructor argument
    • Inject service to Behat Context as Behat Step argument
    • Inject service to Behat Context as Behat Step Argument Transformer argument
    • Mocking Dependency

References¶

  • Github Repository: https://github.com/tkotosz/BehatMagento2Extension
  • Packagist: https://packagist.org/packages/bex/behat-magento2-extension
  • Behat Official Documentaion: https://docs.behat.org
Next

© Copyright 2020, Tibor Kotosz Revision 292ddd47.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
2.1.3
2.1.2
2.1.1
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.