You are here

function PathfilterTestCase::testFiles in Path Filter 7

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

test_pathfilter

TODO: Write a description of the tests!

1 call to PathfilterTestCase::testFiles()
PathfilterTestCase::testNoCleanURLs in tests/pathfilter.test
test with clean URL's disabled

File

tests/pathfilter.test, line 108
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);
}