Skip to content

Commit cc06f19

Browse files
committed
minor #53 Add BrowserKit component as dependency to functional test commands (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
2 parents d9db2dd + a0223b0 commit cc06f19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Maker/MakeFunctionalTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Symfony\Component\Console\Command\Command;
2121
use Symfony\Component\Console\Input\InputArgument;
2222
use Symfony\Component\Console\Input\InputInterface;
23+
use Symfony\Component\BrowserKit\Client;
2324

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

7374
public function configureDependencies(DependencyBuilder $dependencies): void
7475
{
76+
$dependencies->addClassDependency(
77+
Client::class,
78+
'browser-kit'
79+
);
7580
}
7681
}

0 commit comments

Comments
 (0)