protected function JavascriptTestTrait::initMink in Commerce Core 8.2
See also
\Drupal\FunctionalJavascriptTests\JavascriptTestBase::initMink
File
- tests/
src/ Traits/ JavascriptTestTrait.php, line 20
Class
- JavascriptTestTrait
- Allows tests using BrowserTest run with Javascript enabled.
Namespace
Drupal\Tests\commerce\TraitsCode
protected function initMink() {
$this->minkDefaultDriverClass = PhantomJSDriver::class;
// Set up the template cache used by the PhantomJS mink driver.
$path = $this->tempFilesDirectory . DIRECTORY_SEPARATOR . 'browsertestbase-templatecache';
$this->minkDefaultDriverArgs = [
'http://127.0.0.1:8510',
$path,
];
if (!file_exists($path)) {
mkdir($path);
}
return parent::initMink();
}