diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php index dd2286c991..55b1284f70 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php @@ -2,7 +2,6 @@ namespace Drupal\FunctionalJavascriptTests; -use Behat\Mink\Exception\DriverException; use Drupal\Tests\BrowserTestBase; use Zumba\GastonJS\Exception\DeadClient; use Zumba\Mink\Driver\PhantomJSDriver; @@ -27,7 +26,7 @@ */ protected function initMink() { if ($this->minkDefaultDriverClass === DrupalSelenium2Driver::class) { - $this->minkDefaultDriverArgs = ['chrome', null, 'http://localhost:4444/']; + $this->minkDefaultDriverArgs = ['chrome', NULL, 'http://localhost:4444/']; } elseif ($this->minkDefaultDriverClass === PhantomJSDriver::class) { // Set up the template cache used by the PhantomJS mink driver. @@ -47,9 +46,6 @@ protected function initMink() { catch (DeadClient $e) { $this->markTestSkipped('PhantomJS is either not installed or not running. Start it via phantomjs --ssl-protocol=any --ignore-ssl-errors=true vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768&'); } - catch (DriverException $e) { - $this->markTestSkipped($e->getMessage()); - } catch (\Exception $e) { $this->markTestSkipped('An unexpected error occurred while starting Mink: ' . $e->getMessage()); } diff --git a/core/tests/README.md b/core/tests/README.md index 6f0d47f680..ea42929058 100644 --- a/core/tests/README.md +++ b/core/tests/README.md @@ -40,7 +40,9 @@ For help installing and starting selenium, see http://mink.behat.org/en/latest/d * Make sure you have a recent version of chrome installed -* Perform the required installs once: +* Perform the required installs + +Example for Mac: ``` brew install selenium-server-standalone