diff --git a/tests/view/SSViewerTest.php b/tests/view/SSViewerTest.php index 474ea1cf6..ff14a838c 100644 --- a/tests/view/SSViewerTest.php +++ b/tests/view/SSViewerTest.php @@ -1097,6 +1097,7 @@ after') InlineLink $InsertedLink + '); $tmpl = new SSViewer($tmplFile); @@ -1111,7 +1112,12 @@ after') 'InlineLink', $result ); - + $this->assertContains( + '', + $result, + 'SSTemplateParser should only rewrite anchor hrefs' + ); + unlink($tmplFile); Config::inst()->update('SSViewer', 'rewrite_hash_links', $orig); @@ -1130,6 +1136,7 @@ after') InlineLink $InsertedLink + '); $tmpl = new SSViewer($tmplFile); @@ -1145,6 +1152,11 @@ after') // '', + $result, + 'SSTemplateParser should only rewrite anchor hrefs' + ); unlink($tmplFile);