Do not require base URL set with Mink

This commit is contained in:
Kamil Kokot
2019-10-10 17:38:33 +02:00
parent 272b8e3ae7
commit f3eca984d2
2 changed files with 1 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ default:
extensions:
# ...
Behat\MinkExtension:
base_url: 'http://example.com'
sessions:
symfony:
symfony: ~

View File

@@ -10,7 +10,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
final class SymfonyDriver extends BrowserKitDriver
{
public function __construct(KernelInterface $kernel, string $baseUrl)
public function __construct(KernelInterface $kernel, ?string $baseUrl)
{
if (!$kernel->getContainer()->has('test.client')) {
throw new \RuntimeException(sprintf(