You are here

private function ConditionalFieldTestBase::checkScreenshotPathExist in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x tests/src/FunctionalJavascript/ConditionalFieldTestBase.php \Drupal\Tests\conditional_fields\FunctionalJavascript\ConditionalFieldTestBase::checkScreenshotPathExist()

Check does screenshot path exist and create if it's necessary.

1 call to ConditionalFieldTestBase::checkScreenshotPathExist()
ConditionalFieldTestBase::setUp in tests/src/FunctionalJavascript/ConditionalFieldTestBase.php

File

tests/src/FunctionalJavascript/ConditionalFieldTestBase.php, line 54

Class

ConditionalFieldTestBase
Base setup for ConditionalField tests.

Namespace

Drupal\Tests\conditional_fields\FunctionalJavascript

Code

private function checkScreenshotPathExist() {
  if (file_exists($this->screenshotPath)) {
    return;
  }
  mkdir($this->screenshotPath, 0777, TRUE);
}