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

ActiveShopware-platform-plugin[Testing &amp; Quality](/categories/testing)

yireo/shopware6-integration-test-helper
=======================================

Utilities to help you test your Shopware plugins

1.0.0(2y ago)158MITPHP

Since Sep 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yireo-shopware6/shopware6-integration-test-helper)[ Packagist](https://packagist.org/packages/yireo/shopware6-integration-test-helper)[ RSS](/packages/yireo-shopware6-integration-test-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

YireoIntegrationTestHelper
==========================

[](#yireointegrationtesthelper)

**Shopware 6 plugin and library to help you build PHPUnit-based integration tests easier**

Features
--------

[](#features)

- Custom PHPUnit bootstrap
    - Support for various environment variables
- Various PHP traits
    - `assertBundleIsInstalled(string $bundleName)`
    - `assertServiceExists(string $serviceId)`
    - `assertEntityExtensionExists(string $entityExtensionClass)`
- PHP class `\Yireo\IntegrationTestHelper\Test\Integration\AbstractTestCase`
    - Includes all PHP traits already

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

[](#installation)

Install this plugin and activate it:

```
composer require yireo/shopware6-integration-test-helper --dev
bin/console plugin:refresh
bin/console plugin:install --activate YireoIntegrationTestHelper
```

PHPUnit configuration
---------------------

[](#phpunit-configuration)

Next, configure your PHPUnit file to use the file `vendor/yireo/shopware6-integration-test-helper/src/test_bootstrap.php` as a bootstrap. Also configure the `DATABASE_URL` (pointing to a different database than your regular Shopware database).

An example PHPUnit file is here:

```

```

Instead of using the PHPUnit file for this, you could also add the environment variables to a file `.env.test` instead.

- When `FORCE_INSTALL` is `1`, Shopware will do a reinstallation;
- When `FORCE_INSTALL_PLUGINS` is `1`, plugins will be refreshed, installed and activated;
- When `FORCE_INSTALL_ADDITIONAL_PLUGINS` contains a comma-separate list of plugins, each plugin will be installed and activated. Make sure to include at least your own plugin (in this example `YireoExample`);

Usage of PHP parent class
-------------------------

[](#usage-of-php-parent-class)

```
namespace Swag\Example\Test\Integration;

use Yireo\IntegrationTestHelper\Test\Integration\AbstractTestCase;

class BasicPluginTest extends AbstractTestCase
{
    public function testIfBundleIsRegistered()
    {
        $this->assertBundleIsInstalled();
    }
}
```

Usage of PHP traits
-------------------

[](#usage-of-php-traits)

```
namespace Swag\Example\Test\Integration;

use PHPUnit\Framework\TestCase;
use Shopware\Core\Framework\Test\TestCaseBase\IntegrationTestBehaviour;
use Yireo\IntegrationTestHelper\Traits\AssertBundleIsInstalled;

class BasicPluginTest extends TestCase
{
    use IntegrationTestBehaviour;
    use AssertBundleIsInstalled;

    public function getName(): string
    {
        return self::class; // Shopware 6.5 requires you to implement this method
    }

    public function testIfBundleIsRegistered()
    {
        $this->assertBundleIsInstalled();
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

967d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (6 commits)")

### Embed Badge

![Health badge](/badges/yireo-shopware6-integration-test-helper/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-shopware6-integration-test-helper/health.svg)](https://phpackages.com/packages/yireo-shopware6-integration-test-helper)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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