You are here

function SassyBaseUnitTest::getOutputFileReplacements in Sassy 7.2

1 call to SassyBaseUnitTest::getOutputFileReplacements()
SassyBaseUnitTest::loadOutputFile in ./sassy.test

File

./sassy.test, line 195

Class

SassyBaseUnitTest
Base class for Sassy tests.

Code

function getOutputFileReplacements() {
  $tokens = array();
  $tokens['[[%base_path]]'] = base_path();
  $tokens['[[%base_url]]'] = $GLOBALS['base_url'];

  // Add replacements for the locations of all enabled modules.
  foreach (module_list() as $name) {
    $tokens['[[%drupal_get_path:' . $name . ']]'] = drupal_get_path('module', $name);
  }
  return $tokens;
}