You are here

function PathfilterTestCase::testFilesInvalidMatches in Path Filter 6

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

test_pathfilter

TODO: Write a description of the tests!

File

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

Class

PathfilterTestCase

Code

function testFilesInvalidMatches() {
  $snippets = array(
    '"internal:admin/user\'' => PATHFILTER_NOT_OK,
    // mismatched quotes
    '\'internal:admin/user"' => PATHFILTER_NOT_OK,
    // mismatched quotes
    '"files:images/somefile.jpg' . "'" => PATHFILTER_NOT_OK,
  );
  $this
    ->CompareSnippets($snippets);
}