diff --git a/RECIPES.md b/RECIPES.md index 1374a959..202cfca4 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -339,6 +339,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [maba/webpack-bundle](https://packagist.org/packages/maba/webpack-bundle) | [1.0](maba/webpack-bundle/1.0) | | [machy8/webloader-bundle](https://packagist.org/packages/machy8/webloader-bundle) | [1.1](machy8/webloader-bundle/1.1) | | [macpaw/behat-doctrine-fixtures](https://packagist.org/packages/macpaw/behat-doctrine-fixtures) | [1.0](macpaw/behat-doctrine-fixtures/1.0) | +| [macpaw/behat-http-mock-context](https://packagist.org/packages/macpaw/behat-http-mock-context) | [1.0](macpaw/behat-http-mock-context/1.0) | | [macpaw/behat-nelmio-describer](https://packagist.org/packages/macpaw/behat-nelmio-describer) | [1.0](macpaw/behat-nelmio-describer/1.0) | | [macpaw/behat-redis-context](https://packagist.org/packages/macpaw/behat-redis-context) | [1.0](macpaw/behat-redis-context/1.0) | | [macpaw/sentry-monolog-adapter](https://packagist.org/packages/macpaw/sentry-monolog-adapter) | [0.0](macpaw/sentry-monolog-adapter/0.0) | diff --git a/archived/macpaw.behat-http-mock-context/cfcb015889b21e0db6f1b49b8448244255598dc1.json b/archived/macpaw.behat-http-mock-context/cfcb015889b21e0db6f1b49b8448244255598dc1.json new file mode 100644 index 00000000..8f64c2a9 --- /dev/null +++ b/archived/macpaw.behat-http-mock-context/cfcb015889b21e0db6f1b49b8448244255598dc1.json @@ -0,0 +1,44 @@ +{ + "manifests": { + "macpaw/behat-http-mock-context": { + "manifest": { + "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", + "..." + ] + }, + "files": { + "config/packages/test/behat_http_mock_context.yaml": { + "contents": [ + "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", + "" + ], + "executable": false + } + }, + "ref": "cfcb015889b21e0db6f1b49b8448244255598dc1" + } + } +} diff --git a/index.json b/index.json index 4550f2ca..4fc1a887 100644 --- a/index.json +++ b/index.json @@ -1077,6 +1077,9 @@ "macpaw/behat-doctrine-fixtures": [ "1.0" ], + "macpaw/behat-http-mock-context": [ + "1.0" + ], "macpaw/behat-nelmio-describer": [ "1.0" ], diff --git a/macpaw.behat-http-mock-context.1.0.json b/macpaw.behat-http-mock-context.1.0.json new file mode 100644 index 00000000..8f64c2a9 --- /dev/null +++ b/macpaw.behat-http-mock-context.1.0.json @@ -0,0 +1,44 @@ +{ + "manifests": { + "macpaw/behat-http-mock-context": { + "manifest": { + "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", + "..." + ] + }, + "files": { + "config/packages/test/behat_http_mock_context.yaml": { + "contents": [ + "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", + "" + ], + "executable": false + } + }, + "ref": "cfcb015889b21e0db6f1b49b8448244255598dc1" + } + } +}