You are here

protected function BlazyCreationTestTrait::prepareTestDirectory in Blazy 8.2

Same name and namespace in other branches
  1. 8 tests/src/Traits/BlazyCreationTestTrait.php \Drupal\Tests\blazy\Traits\BlazyCreationTestTrait::prepareTestDirectory()

Prepares test directory to store screenshots, or images.

1 call to BlazyCreationTestTrait::prepareTestDirectory()
BlazyCreationTestTrait::createDummyImage in tests/src/Traits/BlazyCreationTestTrait.php
Returns the created image file.

File

tests/src/Traits/BlazyCreationTestTrait.php, line 552

Class

BlazyCreationTestTrait
A Trait common for Blazy tests.

Namespace

Drupal\Tests\blazy\Traits

Code

protected function prepareTestDirectory() {
  $this->testDirPath = $this->root . '/sites/default/files/simpletest/' . $this->testPluginId;
  $this->fileSystem
    ->prepareDirectory($this->testDirPath, FileSystemInterface::CREATE_DIRECTORY);
}