<p>{%trans%}This topic should be top-level. It is used to test URLs{%endtrans%}</p>
<ul>
<li>{%trans%}Valid link, but generated with <code>url()</code> instead of <code>help_route_link()</code> or <code>help_topic_link()</code>: {{link_uses_url_func}}{%endtrans%}</li>
$this->assertEmpty($text,'Topic '.$id.' Twig file has all of its text translated');
// Verify that the Twig url() function was not used.
$this->assertStringNotContainsString('url(',$template,'Topic '.$id.' appears to use the url() function. Replace with help_topic_link() or help_topic_route(). See https://drupal.org/node/3074421');
}
/**
@@ -275,6 +278,10 @@ protected function verifyBadTopic($id, $definitions) {
$this->assertStringContainsString('has the correct H2-H6 heading hierarchy',$message);
break;
case'url_func_used':
$this->assertStringContainsString('appears to use the url() function',$message);