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

ActiveSymfony-bundle

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

Context and Helpers to integrate behat tests in your sulu application

v1.3.0(1mo ago)22.1k↓100%2[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 1w 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 today

READMEChangelog (5)Dependencies (18)Versions (22)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

50

—

FairBetter than 96% of packages

Maintenance84

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

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

59d ago

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

v1.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c9968aaccc87c900fd5ae77c88cbec3bf36f3f1f61aff0b70c32dadcf70cd1be?d=identicon)[hgiesenow](/maintainers/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

[sulu/sulu

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

1.3k1.3M127](/packages/sulu-sulu)[friends-of-behat/mink-debug-extension

Debug extension for Behat

2075.2M257](/packages/friends-of-behat-mink-debug-extension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

583.5M34](/packages/dvdoug-behat-code-coverage)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M24](/packages/sensiolabs-behat-page-object-extension)[imbo/behat-api-extension

API extension for Behat

1092.5M8](/packages/imbo-behat-api-extension)[sulu/form-bundle

Bundle for creating forms in Sulu.

87280.5k7](/packages/sulu-form-bundle)

PHPackages © 2026

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