Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from pixelfusion/feature/jsonapi-behat-plugin-…
…fixes Feature/jsonapi behat plugin fixes
- Loading branch information
Showing
5 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
22 changes: 22 additions & 0 deletions
22
src/Skeletor/Templates/JsonBehatExtensionPackage/behat.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
default: | ||
autoload: | ||
- %paths.base%/tests/Behat/Feature/bootstrap | ||
extensions: | ||
Kielabokkie\BehatJsonApi: | ||
base_url: http://127.0.0.1:8000 | ||
# parameters: | ||
# access_token: abcdefg123456789 | ||
# oauth: | ||
# uri: /oauth/token | ||
# client_id: 1 | ||
# client_secret: testing | ||
# use_bearer_token: true | ||
# password_grant_requires_client_credentials: true | ||
suites: | ||
default: | ||
paths: | ||
- %paths.base%/tests/Behat/Feature | ||
contexts: | ||
- FeatureContext: ~ | ||
formatters: | ||
progress: true |
7 changes: 7 additions & 0 deletions
7
src/Skeletor/Templates/JsonBehatExtensionPackage/example.feature
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: Example Feature | ||
In order to see if Behat is working correctly | ||
I need to see that I can successfully access the application | ||
|
||
Scenario: Check if root domain is accessible | ||
Given I request "GET /" | ||
Then I get a 200 response |