PHPackages                             elbformat/sulu-behat-bundle - 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. elbformat/sulu-behat-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

elbformat/sulu-behat-bundle
===========================

Context and Helpers to integrate behat tests in your sulu application

v1.3.0(6mo ago)22.2k2[1 issues](https://github.com/elbformat/sulu-behat-bundle/issues)[10 PRs](https://github.com/elbformat/sulu-behat-bundle/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jun 17Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/elbformat/sulu-behat-bundle)[ Packagist](https://packagist.org/packages/elbformat/sulu-behat-bundle)[ RSS](/packages/elbformat-sulu-behat-bundle/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (5)Dependencies (18)Versions (28)Used By (0)

sulu-behat-bundle
=================

[](#sulu-behat-bundle)

Adds Contexts and Helper to easily set-up behat tests in your sulu application. It makes use of the [symfony-behat-bundle](https://github.com/elbformat/symfony-behat-bundle).

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

[](#installation)

1. Add the bundle via composer

```
composer require elbformat/sulu-behat-bundle
```

2. Activate bundles in `config/bundles.php`

```
Elbformat\SymfonyBehatBundle\ElbformatSymfonyBehatBundle::class => ['test' => true],
Elbformat\SuluBehatBundle\ElbformatSuluBehatBundle::class => ['test' => true],
```

3. Configure behat Extensions

Add the extension to your `behat.yml`. With the `context` parameter you can decide if the sulu kernel for this profile is running in `website` or `admin` (default) context. It's recommended to use tags to sort features into suites. Also make sure the [symfony extension](https://github.com/FriendsOfBehat/SymfonyExtension) is enabled and configured.

**NOTE**: The `FriendsOfBehat\SymfonyExtension` must be placed *before* the `SuluExtension`.

You can then add Contexts as you like/need.

```
default:
  suites:
    default:
      filters:
        tags: '~@admin'
      contexts:
        - Elbformat\SymfonyBehatBundle\Context\CommandContext:
        - Elbformat\SymfonyBehatBundle\Context\LoggingContext:
        - Elbformat\SuluBehatBundle\Context\BrowserContext:
        - Elbformat\SuluBehatBundle\Context\DateContext:
        - Elbformat\SuluBehatBundle\Context\SuluPageContext:
        - Elbformat\SuluBehatBundle\Context\SuluSnippetContext:
        - Elbformat\SuluBehatBundle\Context\SuluMediaContext:
        # Only enable, when you have the according bundle installed
        #- Elbformat\SuluBehatBundle\Context\SuluArticleContext:
        #- Elbformat\SuluBehatBundle\Context\SuluFormContext:
  extensions:
    FriendsOfBehat\SymfonyExtension: ~
    Elbformat\SuluBehatBundle\SuluExtension:
      context: website
admin:
  suites:
    default:
      filters:
        tags: '@admin'
  extensions:
    FriendsOfBehat\SymfonyExtension:
      bootstrap: 'tests/bootstrap.php'
    Elbformat\SuluBehatBundle\SuluExtension:
      context: admin
```

Run tests
---------

[](#run-tests)

Make sure you have a database configured for the test environment. It's recommended to have an extra database configured for tests in `.env.test`, to not accidentally delete real contents. After configuration you should initialise it once, before running any test against it.

```
bin/console -e test sulu:build prod
```

You can then run the tests in default oder admin profile.

```
vendor/bin/behat
vendor/bin/behat --profile admin
```

Examples
--------

[](#examples)

First you should take a look at the [symfony examples](https://github.com/elbformat/symfony-behat-bundle/blob/main/doc/examples.md). More sulu specific examples can be found in [features/ folder](https://github.com/elbformat/sulu-behat-bundle/features).

Recommended bundles
-------------------

[](#recommended-bundles)

There are contexts, that can ony be enabled when the according bundles are installed.

- SuluArticleContext requires [SuluArticleBundle](https://github.com/sulu/SuluArticleBundle)
- SuluFormContext requires [SuluFormBundle](https://github.com/sulu/SuluFormBundle)

What's next?
------------

[](#whats-next)

Possible enhancements for the next release could be

- SuluCommunityContext for SuluCommunityBundle
- More examples with more content-types

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance71

Regular maintenance activity

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~328 days

Total

5

Last Release

197d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4929980?v=4)[Hannes Giesenow](/maintainers/hgiesenow)[@hgiesenow](https://github.com/hgiesenow)

---

Top Contributors

[![hgiesenow](https://avatars.githubusercontent.com/u/4929980?v=4)](https://github.com/hgiesenow "hgiesenow (4 commits)")[![Jurek-at-work](https://avatars.githubusercontent.com/u/179812805?v=4)](https://github.com/Jurek-at-work "Jurek-at-work (1 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (1 commits)")[![rgericke-elb](https://avatars.githubusercontent.com/u/78011299?v=4)](https://github.com/rgericke-elb "rgericke-elb (1 commits)")[![yumengglaetsch](https://avatars.githubusercontent.com/u/256357403?v=4)](https://github.com/yumengglaetsch "yumengglaetsch (1 commits)")

---

Tags

Behatsulu

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/elbformat-sulu-behat-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/elbformat-sulu-behat-bundle/health.svg)](https://phpackages.com/packages/elbformat-sulu-behat-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M414](/packages/easycorp-easyadmin-bundle)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[drupal/drupal-extension

Drupal extension for Behat

22115.8M179](/packages/drupal-drupal-extension)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M223](/packages/sulu-sulu)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

624.0M62](/packages/dvdoug-behat-code-coverage)

PHPackages © 2026

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