protected function BlazyCreationTestTrait::prepareTestDirectory in Blazy 8
Same name and namespace in other branches
- 8.2 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 548
Class
- BlazyCreationTestTrait
- A Trait common for Blazy tests.
Namespace
Drupal\Tests\blazy\TraitsCode
protected function prepareTestDirectory() {
$this->testDirPath = $this->root . '/sites/default/files/simpletest/' . $this->testPluginId;
$this->fileSystem
->prepareDirectory($this->testDirPath, FileSystemInterface::CREATE_DIRECTORY);
}