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(3mo 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 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 1mo ago

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

49

—

FairBetter than 94% of packages

Maintenance81

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

107d 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.3M151](/packages/sulu-sulu)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29733.3k](/packages/sulu-skeleton)[sulu/form-bundle

Bundle for creating forms in Sulu.

87287.3k6](/packages/sulu-form-bundle)[sulu/article-bundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-bundle)[dmarynicz/behat-parallel-extension

Parallel extension for Behat

27544.3k](/packages/dmarynicz-behat-parallel-extension)

PHPackages © 2026

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