You are here

protected function FileEntityPathsHelper::setDefaultVariables in File Entity Paths 7.2

1 call to FileEntityPathsHelper::setDefaultVariables()
FileEntityPathsHelper::setUp in tests/fe_paths.test
Sets up a Drupal site for running functional and integration tests.

File

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

Class

FileEntityPathsHelper
@file Tests for File Entity Paths

Code

protected function setDefaultVariables($file_types = array(), $postfix = '') {
  foreach ($file_types as $type) {
    $config = array();
    foreach (fe_paths_get_allowed_schemes() as $scheme) {
      $config[$scheme] = array(
        'path' => $type . $postfix,
        'filename' => $type . $postfix . '.fep.test',
      );
    }
    variable_set("fep_{$type}", $config);
  }
}