Skip to content

Commit f933c10

Browse files
committed
feat: add macpaw/behat-http-mock-context configuration
1 parent a9eb760 commit f933c10

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
mock_http_client:
3+
class: ExtendedMockHttpClient\ExtendedMockHttpClient
4+
arguments:
5+
- '%env(YOUR_SERVICE_URL)%'
6+
tags: ['mock.http_client']
7+
8+
BehatHttpMockContext\Collection\ExtendedMockHttpClientCollection:
9+
arguments:
10+
- !tagged_iterator mock.http_client
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"bundles": {
3+
"BehatHttpMockContext\\BehatHttpMockContextBundle": ["test"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"post-install-output": [
9+
"<fg=blue>Read</> the documentation at <comment>https://github.com/MacPaw/behat-http-mock-context</comment>",
10+
"BehatHttpMockContextBundle is registered in the test environment.",
11+
"<fg=red>Add</> this to your behat.yml to finish setup:",
12+
"...",
13+
"contexts:",
14+
" - BehatHttpMockContext\\Context\\MockContext",
15+
"..."
16+
]
17+
}

0 commit comments

Comments
 (0)