diff --git a/macpaw/behat-http-mock-context/1.0/config/packages/test/behat_http_mock_context.yaml b/macpaw/behat-http-mock-context/1.0/config/packages/test/behat_http_mock_context.yaml new file mode 100644 index 000000000..16b92101f --- /dev/null +++ b/macpaw/behat-http-mock-context/1.0/config/packages/test/behat_http_mock_context.yaml @@ -0,0 +1,10 @@ +services: + mock_http_client: + class: ExtendedMockHttpClient\ExtendedMockHttpClient + arguments: + - '%env(YOUR_SERVICE_URL)%' + tags: ['mock.http_client'] + + BehatHttpMockContext\Collection\ExtendedMockHttpClientCollection: + arguments: + - !tagged_iterator mock.http_client diff --git a/macpaw/behat-http-mock-context/1.0/manifest.json b/macpaw/behat-http-mock-context/1.0/manifest.json new file mode 100644 index 000000000..ae8521940 --- /dev/null +++ b/macpaw/behat-http-mock-context/1.0/manifest.json @@ -0,0 +1,17 @@ +{ + "bundles": { + "BehatHttpMockContext\\BehatHttpMockContextBundle": ["test"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "post-install-output": [ + "Read the documentation at https://github.com/MacPaw/behat-http-mock-context", + "BehatHttpMockContextBundle is registered in the test environment.", + "Add this to your behat.yml to finish setup:", + "...", + "contexts:", + " - BehatHttpMockContext\\Context\\MockContext", + "..." + ] +}