PHPackages                             betooliveirame/codeception-magento - 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. betooliveirame/codeception-magento

AbandonedArchivedLibrary

betooliveirame/codeception-magento
==================================

Codeception To Integrate with Magento

1.0.3(6y ago)0992MITPHPPHP &gt;=5.6

Since Jul 2Pushed 6y agoCompare

[ Source](https://github.com/betooliveirame/codepcetion-magento)[ Packagist](https://packagist.org/packages/betooliveirame/codeception-magento)[ Docs](http://about.me/betooliveira)[ RSS](/packages/betooliveirame-codeception-magento/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

Magento Codeception
===================

[](#magento-codeception)

Composer install
----------------

[](#composer-install)

```
composer require betooliveira/codeception-magento

```

---

Config
------

[](#config)

**codeception.yml**

```
extensions:
    enabled:
        - Codeception\Extension\RunFailed
        - Magento\Codeception\Extension\Magento
    config:
        Magento\Codeception\Extension\Magento:
            magento-dir: 'src'

```

**unit.suite.yml**

```
class_name: UnitTester
modules:
    enabled:
        - Asserts
        - \Helper\Unit
        - \Magento\Codeception\Helper\Magento

```

---

Mock Models
-----------

[](#mock-models)

```
    $modelMock = $this->getMockBuilder('Custom_Custom_Model_Custom')
        ->setMethods(array('getData'))
        ->getMock();

    $modelMock->expects($this->once())
        ->method('getData')
        ->will($this->returnValue(array('teste)));

    $this->tester->replaceModelByMock('custom/custom', $modelMock);

    $result = Mage::getModel('custom/custom);

	$this->tester->assertSame($modelMock, $result);

```

Mock Singletons
---------------

[](#mock-singletons)

```
    $singletonMock = $this->getMockBuilder('Custom_Custom_Model_Custom')
        ->setMethods(array('getData'))
        ->getMock();

    $singletonMock->expects($this->once())
        ->method('getData')
        ->will($this->returnValue(array('teste)));

    $this->tester->replaceSingletonByMock('custom/custom', $singletonMock);

	$result = Mage::getSingleton('custom/custom);

	$this->tester->assertSame($singletonMock, $result);

```

Mock Helper
-----------

[](#mock-helper)

```
    $helperMock = $this->getMockBuilder('Custom_Custom_helper_Custom')
        ->setMethods(array('getData'))
        ->getMock();

    $helperMock->expects($this->once())
        ->method('getData')
        ->will($this->returnValue(array('teste)));

    $this->tester->replaceHelperByMock('custom/custom', $helperMock);

	$result = Mage::helper('custom/custom);

	$this->tester->assertSame($helperMock, $result);

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~105 days

Recently: every ~289 days

Total

12

Last Release

2441d ago

Major Versions

0.0.11 → 1.0.02019-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/9845017a2a351bdd6f2969083519fd45c6ae612df81064ffef1e5c24a04294c6?d=identicon)[herbertoliveira](/maintainers/herbertoliveira)

---

Top Contributors

[![betooliveirame](https://avatars.githubusercontent.com/u/24894708?v=4)](https://github.com/betooliveirame "betooliveirame (2 commits)")

### Embed Badge

![Health badge](/badges/betooliveirame-codeception-magento/health.svg)

```
[![Health](https://phpackages.com/badges/betooliveirame-codeception-magento/health.svg)](https://phpackages.com/packages/betooliveirame-codeception-magento)
```

###  Alternatives

[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6343.8M152](/packages/lucatume-wp-browser)[codeception/module-asserts

Codeception module containing various assertions

8550.6M1.2k](/packages/codeception-module-asserts)[codeception/lib-innerbrowser

Parent library for all Codeception framework modules and PhpBrowser

8641.7M77](/packages/codeception-lib-innerbrowser)[codeception/module-phpbrowser

Codeception module for testing web application over HTTP

6529.8M501](/packages/codeception-module-phpbrowser)[codeception/module-rest

REST module for Codeception

5927.8M207](/packages/codeception-module-rest)

PHPackages © 2026

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