-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add route that returns an array as specified in issue #13 * Add tests that validates the issue * Fix issue * Split up the two test scripts and refer to them in the combined script * Update ChangeLog
- Loading branch information
1 parent
012df7b
commit 359fb6f
Showing
6 changed files
with
119 additions
and
2 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
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,46 @@ | ||
Feature: Fix issue #13 | ||
In order to check multidimensional arrays | ||
As an extension | ||
I need to recursively compare arrays | ||
|
||
Background: | ||
Given a file named "behat.yml" with: | ||
""" | ||
default: | ||
formatters: | ||
progress: ~ | ||
extensions: | ||
Imbo\BehatApiExtension: | ||
base_uri: http://localhost:8080 | ||
suites: | ||
default: | ||
contexts: ['Imbo\BehatApiExtension\Context\ApiContext'] | ||
""" | ||
|
||
Scenario: Recursively compare arrays | ||
Given a file named "features/issue-13.feature" with: | ||
""" | ||
Feature: Recursively check arrays | ||
Scenario: Check the value for a sub-array | ||
When I request "/issue-13" | ||
Then the response code is 200 | ||
And the response body contains: | ||
''' | ||
{ | ||
"customer": { | ||
"images[0]": { | ||
"filename_client": "tech.ai" | ||
} | ||
} | ||
} | ||
''' | ||
""" | ||
When I run "behat features/issue-13.feature" | ||
Then it should pass with: | ||
""" | ||
... | ||
1 scenario (1 passed) | ||
3 steps (3 passed) | ||
""" |
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