PHPackages                             yireo/magento2-integration-test-helper - 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. yireo/magento2-integration-test-helper

ActiveMagento2-module[Testing &amp; Quality](/categories/testing)

yireo/magento2-integration-test-helper
======================================

Magento 2 module to support integration tests in other modules

0.0.21(6mo ago)1633.2k↓33.7%16OSL-3.0PHPPHP 8.0.\* || 8.1.\* || 8.2.\* || 8.3.\* || 8.4.\*CI passing

Since Feb 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/yireo/Yireo_IntegrationTestHelper)[ Packagist](https://packagist.org/packages/yireo/magento2-integration-test-helper)[ Docs](https://www.yireo.com/software/magento-extensions/)[ Fund](https://www.paypal.me/yireo)[ GitHub Sponsors](https://github.com/yireo)[ RSS](/packages/yireo-magento2-integration-test-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (23)Used By (16)

Magento 2 integration testing helper
====================================

[](#magento-2-integration-testing-helper)

This module adds various utilities to aid in creating integration tests for Magento 2.

Installation
------------

[](#installation)

Use the following commands to install:

```
composer require yireo/magento2-integration-test-helper --dev

```

Enable this module:

```
./bin/magento module:enable Yireo_IntegrationTestHelper
./bin/magento setup:upgrade

```

Using this helper to enhance your tests
---------------------------------------

[](#using-this-helper-to-enhance-your-tests)

Parent classes:

- `\Yireo\IntegrationTestHelper\Test\Integration\AbstractTestCase`
- `\Yireo\IntegrationTestHelper\Test\Integration\GraphQlTestCase`

These classes offer some utility functions plus import numerous traits (see `Test/Integration/Traits/`) with PHPUnit assertions. For instance, the following test checks for the proper registration of your module:

```
