Skip to content

Commit

Permalink
minor #53 Add BrowserKit component as dependency to functional test c…
Browse files Browse the repository at this point in the history
…ommands (yceruto)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Add BrowserKit component as dependency to functional test commands

Same as other commands, the generated file does not work if all dependencies are not available.

Commits
-------

a0223b0 Add browser-kit component as dependency for functional test commands
  • Loading branch information
weaverryan committed Nov 29, 2017
2 parents d9db2dd + a0223b0 commit cc06f19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Maker/MakeFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\BrowserKit\Client;

/**
* @author Javier Eguiluz <[email protected]>
Expand Down Expand Up @@ -72,5 +73,9 @@ public function writeNextStepsMessage(array $params, ConsoleStyle $io): void

public function configureDependencies(DependencyBuilder $dependencies): void
{
$dependencies->addClassDependency(
Client::class,
'browser-kit'
);
}
}

0 comments on commit cc06f19

Please sign in to comment.