protected $mapper;
/**
- * @var string for testing cache buster generation
+ * @var string
+ * For testing cache buster generation
*/
protected $cacheBusterString = 'xBkdk3';
$actual = $smarty->fetch('string:{crmResURL ext=com.example.ext}');
$this->assertEquals('http://ext-dir/com.example.ext/', $actual);
+
+ $actual = $smarty->fetch('string:{crmResURL expr="[civicrm.root]/foo"}');
+ $this->assertEquals(Civi::paths()->getUrl('[civicrm.root]/foo'), $actual);
}
public function testGlob() {