Skip to content

Instantly share code, notes, and snippets.

@Axxiss
Last active December 15, 2015 05:49
Show Gist options
  • Save Axxiss/5212013 to your computer and use it in GitHub Desktop.
Save Axxiss/5212013 to your computer and use it in GitHub Desktop.
default:
paths:
features: src/Acme/MyBundle/Features
bootstrap: %behat.paths.features%/bootstrap
extensions:
Behat\Symfony2Extension\Extension:
mink_driver: true
kernel:
env: test
debug: true
bundle: AcmeMyBundle
Behat\MinkExtension\Extension:
default_session: symfony2
Feature: Login system
In order to access site's content
As a user
I want to login into the system
Background:
Given There is no "User" in database
And the following users:
| name | password | email |
| john | john | john@john.com |
Scenario: User registration
Given I am on "/register"
Then I should see "Login"
When I fill in the following:
| Username | my_user |
| Email | my_email@email.com |
| Password | my_password |
| Verification | my_password |
And I press "Register"
Then I should be on "/register/confirmed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment