Skip to content

Commit

Permalink
Add doc hint about newly available $kernelOptions and $managerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfausk committed Mar 14, 2021
1 parent 5abc518 commit 1a0aa0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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();
Expand Down

0 comments on commit 1a0aa0b

Please sign in to comment.