You are here

function PathfilterTestCase::testFiles in Path Filter 6

Same name and namespace in other branches
  1. 6.2 tests/pathfilter.test \PathfilterTestCase::testFiles()
  2. 7 tests/pathfilter.test \PathfilterTestCase::testFiles()

test_pathfilter

TODO: Write a description of the tests!

File

tests/pathfilter.test, line 130
Tests for Path Filter

Class

PathfilterTestCase

Code

function testFiles() {
  global $base_url;
  $snippets = array(
    "'files:images/somefile.jpg'" => "'" . file_create_url('images/somefile.jpg') . "'",
    // single quotes
    '"files:images/somefile.jpg"' => '"' . file_create_url('images/somefile.jpg') . '"',
  );
  $this
    ->CompareSnippets($snippets);
}