You are here

protected function SelectProfileFormTest::initMink in Drupal 8

Initializes Mink sessions.

Overrides WebDriverTestBase::initMink

1 call to SelectProfileFormTest::initMink()
SelectProfileFormTest::setUp in core/tests/Drupal/FunctionalJavascriptTests/Core/Installer/Form/SelectProfileFormTest.php

File

core/tests/Drupal/FunctionalJavascriptTests/Core/Installer/Form/SelectProfileFormTest.php, line 95

Class

SelectProfileFormTest
Tests the select profile form.

Namespace

Drupal\FunctionalJavascriptTests\Core\Installer\Form

Code

protected function initMink() {

  // The temporary files directory doesn't exist yet, as install_base_system()
  // has not run. We need to create the template cache directory recursively.
  $path = $this->tempFilesDirectory . DIRECTORY_SEPARATOR . 'browsertestbase-templatecache';
  if (!file_exists($path)) {
    mkdir($path, 0777, TRUE);
  }
  parent::initMink();
}