PHPackages                             oskarstark/sonata-admin-behat-context - 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. oskarstark/sonata-admin-behat-context

ActiveLibrary[Testing &amp; Quality](/categories/testing)

oskarstark/sonata-admin-behat-context
=====================================

a Behat Context for SonataAdmin

2.0.0(4y ago)650.4k↓75.7%1[1 issues](https://github.com/OskarStark/SonataAdminBehatContext/issues)MITPHPPHP &gt;=7.1CI failing

Since May 16Pushed 4y ago4 watchersCompare

[ Source](https://github.com/OskarStark/SonataAdminBehatContext)[ Packagist](https://packagist.org/packages/oskarstark/sonata-admin-behat-context)[ RSS](/packages/oskarstark-sonata-admin-behat-context/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (9)Versions (30)Used By (0)

SonataAdminBehatContext
=======================

[](#sonataadminbehatcontext)

[![Build Status](https://camo.githubusercontent.com/b23e0645567b407394d5ee9fe7359577d9533555f1240477ecdb61be91318576/68747470733a2f2f7472617669732d63692e6f72672f4f736b6172537461726b2f536f6e61746141646d696e4265686174436f6e746578742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OskarStark/SonataAdminBehatContext)

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

[](#installation)

```
composer require oskarstark/sonata-admin-behat-context --dev
```

Usage
-----

[](#usage)

Enable the context in your `behat.yml`:

```
default:
    suites:
        default:
            contexts:
                - OStark\Context\SonataAdminContext:
                # this can be disabled if you do not use the SonataAdminUserBundle
                - OStark\Context\SonataAdminUserBundleContext:
                    userManager: '@sonata.user.user_manager'
                    tokenStorage: '@security.token_storage'
                    session: '@session'

                # make sure to enable MinkContext!
                - Behat\MinkExtension\Context\MinkContext
```

Available steps
---------------

[](#available-steps)

### Filters

[](#filters)

StepRegexI reset the filters`/^(?:|I )reset the filters$/`I filter the list`/^(?:|I )filter the list$/`I should see the filters`/^(?:|I )should see the filters$/`I should not see the filters`/^(?:|I )should not see the filters$/`I click filters`/^(?:|I )click filters$/`I select "**Email**" filter`/^(?:|I )select "([^"]*)" filter$/`I select filters:
|**ID** |
|**Name**|/^(?:|I )select filters:$/I should see "**Firstname**" filter`/^(?:|I )should see "([^"]*)" filter$/`I should see filters:
|**ID** |
|**Name**|/^(?:|I )should see filters:$/I filter "**ID**" with "**1**"`/^(?:|I )filter "([^"]*)" with "([^"]*)"$/`### Checkboxes

[](#checkboxes)

StepRegexI check checkbox in row "**1**"`/^(?:|I )check checkbox in row "([^"]*)"$/`I check All-Elements checkbox`/^(?:|I )check All-Elements checkbox$/`### Flash-Messages

[](#flash-messages)

StepRegexI should see "**success**" flash message with "**Sucessfully updated entity!**"`/^(?:|I )should see "([^"]*)" flash message with "(?P(?:[^"]|\\")*)"$/`I close flash message`/^(?:|I )close flash message$/`### User &amp; Authentication

[](#user--authentication)

StepRegexI delete last created user`/^(?:|I )delete last created user$/`I am authenticated User`/^I am an authenticated User$/`I have role "**ROLE\_SONATA\_ADMIN**"`/^I have role "([^"]*)"$/`I am authenticated as User "****"`/^I am authenticated as User "([^"]*)"$/`I logout User`/^(?:|I )logout User$/`I impersonate user "****"`/^(?:|I )impersonate user "([^"]*)"$/`### Batch-Actions

[](#batch-actions)

StepRegexI select "**Delete**" from batch actions`/^(?:|I )select "([^"]*)" from batch actions$/`### List-Columns

[](#list-columns)

StepRegexI should see "**ID, Firstname, Lastname**" list columns`/^(?:|I )should see "([^"]*)" list columns$/`I should see list columns:
|**ID**|
|**Firstname**|
|**Lastname**|/^(?:|I )should see list columns:$/I should not see "**Email, Password**" list columns`/^(?:|I )should not see "([^"]*)" list columns$/`I should not see list columns:
|**ID**|
|**Firstname**|
|**Lastname**|/^(?:|I )should not see list columns:$/I should see "**ID**" list column`/^(?:|I )should see "([^"]*)" list column$/`I should not see "**Password**" list column`/^(?:|I )should not see "([^"]*)" list column$/`I should see "****" in row "**1**" on column "**Email**"`/^(?:|I )should see "(?P[^"]*)" in row "(?P[^"]*)" on column "(?P[^"]*)"$/`I should see "****" in row "**1**" on column "**Email**" (use data-row: "mail")`/^(?:|I )should see "(?P[^"]*)" in row "(?P[^"]*)" on column "(?P[^"]*)" \(use data-name: "(?P[^"]*)"\)$/`the row "**1**" should contain "****" on column "**Email**"`/^(?:|the )row "(?P[^"]*)" should contain "(?P[^"]*)" on column "(?P[^"]*)"$/`the row "**1**" should contain "****" on column "**Email**" (use data-row: "mail")`/^(?:|the )row "(?P[^"]*)" should contain "(?P[^"]*)" on column "(?P[^"]*)" \(use data-name: "(?P[^"]*)"\)$/`I should see nothing in row "**1**" on column "**Email**"`/^(?:|I )should see nothing in row "(?P[^"]*)" on column "(?P[^"]*)"$/`I should see nothing in row "**1**" on column "**Email**" (use data-row: "mail")`/^(?:|I )should see nothing in row "(?P[^"]*)" on column "(?P[^"]*)" \(use data-name: "(?P[^"]*)"\)$/`the row "**1**" should contain nothing on column "**Email**"`/^(?:|the )row "(?P[^"]*)" should contain nothing on column "(?P[^"]*)"$/`the row "**1**" should contain nothing on column "**Email**" (use data-row: "mail")`/^(?:|the )row "(?P[^"]*)" should contain nothing on column "(?P[^"]*)" \(use data-name: "(?P[^"]*)"\)$/`the value in row "**1**" on column "**Email**" should end with "**@gmail.com**"`/^(?:|the )value in row "(?P[^"]*)" on column "(?P[^"]*)" should end with "(?P[^"]*)"$/`the value in row "**1**" on column "**Email**" should end with "**@gmail.com**" (use data-row: "mail")`/^(?:|the )value in row "(?P[^"]*)" on column "(?P[^"]*)" should end with "(?P[^"]*)" \(use data-name: "(?P[^"]*)"\)$/`### Form fields

[](#form-fields)

StepRegexthe field "**Firstname**" should be empty`/^the "(?P(?:[^"]|\\")*)" field should be empty$/`the "**Firstname**" field should be empty`/^the field "(?P(?:[^"]|\\")*)" should be empty$/`the field "**Password**" should not be empty`/^the "(?P(?:[^"]|\\")*)" field should not be empty$/`the "**Password**" field should not be empty`/^the field "(?P(?:[^"]|\\")*)" should not be empty$/`

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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 ~46 days

Recently: every ~279 days

Total

28

Last Release

1711d ago

Major Versions

0.1.3 → 1.0.02018-06-08

1.x-dev → 2.0.02021-10-26

PHP version history (3 changes)0.1PHP ^7.0

1.0.0PHP ^7.1

1.x-devPHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b0aaaa249bfef22b586e459b3fd8687e58644fb6223ffe8e4e709ac05be704d?d=identicon)[OskarStark](/maintainers/OskarStark)

---

Top Contributors

[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (58 commits)")[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (1 commits)")

---

Tags

bddbehatcontextsonatasonata-adminsymfonyBDDSymfony2ContextBehatsonata-adminsonata

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oskarstark-sonata-admin-behat-context/health.svg)

```
[![Health](https://phpackages.com/badges/oskarstark-sonata-admin-behat-context/health.svg)](https://phpackages.com/packages/oskarstark-sonata-admin-behat-context)
```

###  Alternatives

[soyuka/contexts

Behatch contexts

282.3M22](/packages/soyuka-contexts)[dmarynicz/behat-parallel-extension

Parallel extension for Behat

28639.0k4](/packages/dmarynicz-behat-parallel-extension)[novaway/common-contexts

Novaway Behat common contexts

18191.3k3](/packages/novaway-common-contexts)[marcortola/behat-seo-contexts

Behat extension for testing some On-Page SEO factors: meta title/description, canonical, hreflang, meta robots, robots.txt, redirects, sitemap validation, HTML validation, performance...

13171.0k](/packages/marcortola-behat-seo-contexts)[macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

17241.5k](/packages/macpaw-behat-messenger-context)

PHPackages © 2026

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