Last active
December 15, 2015 05:49
-
-
Save Axxiss/5212013 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | [email protected] | | |
Scenario: User registration | |
Given I am on "/register" | |
Then I should see "Login" | |
When I fill in the following: | |
| Username | my_user | | |
| Email | [email protected] | | |
| 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