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:
@@ -20,7 +20,6 @@ default:
|
||||
extensions:
|
||||
# ...
|
||||
Behat\MinkExtension:
|
||||
base_url: 'http://example.com'
|
||||
sessions:
|
||||
symfony:
|
||||
symfony: ~
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user