bug #97 Do not require base URL set with Mink (pamil)

This PR was merged into the 2.0 branch.

Discussion
----------

Fixed #95.

Commits
-------

f3eca984d2 Do not require base URL set with Mink
This commit is contained in:
Kamil Kokot
2019-10-10 17:53:33 +02:00
committed by GitHub
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(