PHPackages                             edmondscommerce/behat-magento-one-context - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. edmondscommerce/behat-magento-one-context

ActiveLibrary[Testing &amp; Quality](/categories/testing)

edmondscommerce/behat-magento-one-context
=========================================

A Behat Extension to use with Magento 1.x

0202[1 issues](https://github.com/edmondscommerce/behat-magento-one-context/issues)PHP

Since May 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/edmondscommerce/behat-magento-one-context)[ Packagist](https://packagist.org/packages/edmondscommerce/behat-magento-one-context)[ RSS](/packages/edmondscommerce-behat-magento-one-context/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Magento One Context
===================

[](#magento-one-context)

By [Edmonds Commerce](https://www.edmondscommerce.co.uk)
--------------------------------------------------------

[](#by-edmonds-commerce)

Behat contexts to aid testing of Magento 1.x sites

### Installation

[](#installation)

Install via composer

"edmondscommerce/behat-magento-one-context": "~1.1"

### Include Contexts in Behat Configuration

[](#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.

### Custom Contexts should extend `RawMinkContext`

[](#custom-contexts-should-extend-rawminkcontext)

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

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

Contexts should therefore extend `Behat\MinkExtension\Context\RawMinkContext` instead

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7af407ceeb8622c9c164d386ef3e95cda4c94d141240348ac5703223bb499d0e?d=identicon)[edmondscommerce](/maintainers/edmondscommerce)

---

Top Contributors

[![everon](https://avatars.githubusercontent.com/u/375251?v=4)](https://github.com/everon "everon (21 commits)")[![edmondscommerce](https://avatars.githubusercontent.com/u/62842?v=4)](https://github.com/edmondscommerce "edmondscommerce (6 commits)")[![tahirqureshi](https://avatars.githubusercontent.com/u/73536349?v=4)](https://github.com/tahirqureshi "tahirqureshi (1 commits)")

### Embed Badge

![Health badge](/badges/edmondscommerce-behat-magento-one-context/health.svg)

```
[![Health](https://phpackages.com/badges/edmondscommerce-behat-magento-one-context/health.svg)](https://phpackages.com/packages/edmondscommerce-behat-magento-one-context)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
