You are here

protected function FileEntityPathsHelper::setFilePathPatterns in File Entity Paths 7.2

Create 10 random filepath pattern. Also add a fix sample to image and text.

File

tests/fe_paths.test, line 74
Tests for File Entity Paths

Class

FileEntityPathsHelper
@file Tests for File Entity Paths

Code

protected function setFilePathPatterns() {
  while (!isset($this->filePathPatterns[9])) {
    $this->filePathPatterns[] = $this
      ->randomName(8);
  }
  $this->filePathPatterns['image'] = 'images';
  $this->filePathPatterns['text'] = 'text';
}