Skip to content

Commit ef9d1af

Browse files
committed
bug #30642 [FrameworkBundle] Update Client class to KernelBrowser (SerkanYildiz)
This PR was merged into the 4.3-dev branch. Discussion ---------- [FrameworkBundle] Update Client class to KernelBrowser | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT I updated recently the WebTestCase with a check to provide a better/more clear exception message (see #30479). After that change @fabpot renamed different `Client` classes in components to a clearer name (for ex Client in HttpKernel is now KernelBrowser etc.). This PR aims to replace the Client in WebTestCase to the new name class name. Commits ------- 28b6dd243e Replace class with new name.
2 parents 9caefe3 + 6fe1169 commit ef9d1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Test/WebTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected static function createClient(array $options = [], array $server = [])
3636
try {
3737
$client = $kernel->getContainer()->get('test.client');
3838
} catch (ServiceNotFoundException $e) {
39-
if (class_exists(Client::class)) {
39+
if (class_exists(KernelBrowser::class)) {
4040
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
4141
}
4242
throw new \LogicException('You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit"');

0 commit comments

Comments
 (0)