2017 © Pedro Peláez
 

library behat-magento-one-context

A Behat Extension to use with Magento 1.x

image

edmondscommerce/behat-magento-one-context

A Behat Extension to use with Magento 1.x

  • Thursday, July 19, 2018
  • by edmondscommerce
  • Repository
  • 1 Watchers
  • 0 Stars
  • 144 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 11 % Grown

The README.md

Magento One Context

By Edmonds Commerce

Behat contexts to aid testing of Magento 1.x sites, (*1)

Installation

Install via composer, (*2)

"edmondscommerce/behat-magento-one-context": "~1.1", (*3)

Include Contexts in Behat Configuration

default:
    # ...
    suites:
        default:
        # ...
            contexts:
                - # ...
                - EdmondsCommerce\BehatMagentoOneContext\CartContext
                - EdmondsCommerce\BehatMagentoOneContext\CustomerContext
                - EdmondsCommerce\BehatMagentoOneContext\NavigationContext
                - EdmondsCommerce\BehatMagentoOneContext\ProductContext
            parameters:
                magentoSettings:                         
                    pathToMage: '/path/to/app/Mage.php'
                    categoryUri: women/new-arrivals.html
                    simpleUri: accessories/eyewear/aviator-sunglasses.html
                    bundleUri: pillow-and-throw-set.html
                    configurableUri: lafayette-convertible-dress.html
                    groupedUri: vase-set.html

The ProductContext has additional parameters that allow for easier navigation to different types of product, when these are not specified they will default to the sample data urls to ease prototyping of modules using the sample data., (*4)

Custom Contexts should extend RawMinkContext

AbstractMagentoContext::gatherContexts() expects Behat\MinkExtension\Context\MinkContext to be specified in the behat.yml, (*5)

If the default FeatureContext, or any other Contexts extend this class too, Behat will complain that "Step 'x' is already defined in Class::method()"., (*6)

Contexts should therefore extend Behat\MinkExtension\Context\RawMinkContext instead, (*7)

The Versions

19/07 2018

dev-master

9999999-dev https://www.edmondscommerce.co.uk

A Behat Extension to use with Magento 1.x

  Sources   Download

MIT

The Requires

 

by Avatar edmondscommerce

testing logging behat magento magento 1