"Behat is an open source Behavior Driven Development framework for PHP 5.3+. What’s behavior driven development, you ask? It’s a way to develop software through a constant communication with stakeholders in form of examples; examples of how this software should help them, and you, to achieve your goals."
— docs.behat.org/en/v3.0
Behat is a testing framework that uses plain language to test user behavior on your site.
@api
Feature: Articles can be created and edited.
In order to inform users
As an administrator
I need to create and edit articles on the site
Scenario: An administrator can edit an article
Given I am logged in as a user with the administrator role
Then I should be able to edit an Article
Scenario: An authenticated user can not edit an article
Given I am logged in as a user with the authenticated role
When I go to "/node/add/article"
Then the response status code should be 403