Replace class with new name.
This commit is contained in:
parent
522594a69d
commit
28b6dd243e
@ -36,7 +36,7 @@ abstract class WebTestCase extends KernelTestCase
|
|||||||
try {
|
try {
|
||||||
$client = $kernel->getContainer()->get('test.client');
|
$client = $kernel->getContainer()->get('test.client');
|
||||||
} catch (ServiceNotFoundException $e) {
|
} catch (ServiceNotFoundException $e) {
|
||||||
if (class_exists(Client::class)) {
|
if (class_exists(KernelBrowser::class)) {
|
||||||
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
|
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
|
||||||
}
|
}
|
||||||
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"');
|
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"');
|
||||||
|
Reference in New Issue
Block a user