From 1a0aa0b581af3734f333caa24954db6f3a67d653 Mon Sep 17 00:00:00 2001 From: robertfausk Date: Sun, 14 Mar 2021 08:47:12 +0100 Subject: [PATCH] Add doc hint about newly available $kernelOptions and $managerOptions --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7586405..50aa516 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ use Behat\Mink\Session; use Behat\Mink\Driver\PantherDriver; use Symfony\Component\Panther\PantherTestCase; -// These are the same options passed as first argument to PantherTestCaseTrait::createPantherClient client constructor. +// These are the same options passed as in PantherTestCaseTrait::createPantherClient client constructor. protected static $defaultOptions = [ 'webServerDir' => __DIR__.'/../../../../public', // the Flex directory structure 'hostname' => '127.0.0.1', @@ -40,9 +40,11 @@ protected static $defaultOptions = [ 'readinessPath' => '', 'browser' => PantherTestCase::CHROME, ]; +$kernelOptions = []; +$managerOptions = []; $mink = new Mink(array( - 'panther' => new Session(new PantherDriver($defaultOptions)), + 'panther' => new Session(new PantherDriver($defaultOptions, $kernelOptions, $managerOptions)), )); $mink->getSession('panther')->getPage()->findLink('Chat')->click();