You are here

private function ConditionalFieldTestBase::checkScreenshotPathExist in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 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 59

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);
}