Skip to content

Commit

Permalink
Update test kernel to have an http client
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Dolbeau committed Jun 18, 2019
1 parent e369aaa commit f3ed4ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composer.json
Expand Up @@ -22,7 +22,11 @@
"symfony/yaml": "^3.4|^4.0",
"friendsofphp/php-cs-fixer": "^2.14",
"symfony/phpunit-bridge": "^3.4|^4.0",
"shapin/stripe": "dev-master"
"shapin/stripe": "dev-master",
"php-http/httplug-bundle": "^1.16",
"php-http/mock-client": "^1.3",
"php-http/message": "^1.7",
"php-http/guzzle6-adapter": "^2.0"
},
"suggest": {
"shapin/stripe": "Needed to load Stripe fixtures"
Expand Down
1 change: 1 addition & 0 deletions tests/app/Kernel.php
Expand Up @@ -12,6 +12,7 @@ public function registerBundles()
return array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Http\HttplugBundle\HttplugBundle(),
new Shapin\Datagen\Bridge\Symfony\Bundle\ShapinDatagenBundle(),
new Shapin\Datagen\Tests\Fixtures\TestBundle\TestBundle(),
);
Expand Down
3 changes: 3 additions & 0 deletions tests/app/config.yml
Expand Up @@ -23,5 +23,8 @@ services:
tags:
- { name: 'shapin_datagen.fixture' }

Shapin\Stripe\StripeClient:
arguments: ['@httplug.client.mock']

logger:
class: Psr\Log\NullLogger

0 comments on commit f3ed4ac

Please sign in to comment.