X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FCore%2FResourcesTest.php;h=bfebbb69a9d8c2113382586a5df6d6e2d899ede4;hb=78fb1616f81632958eaa809987c691d32b81ad46;hp=da2289c8ce55510fc62d108fbbec53badfb5476e;hpb=554bfe5dfb6c7e64e7b8f4f122910fde8b8b95c4;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Core/ResourcesTest.php b/tests/phpunit/CRM/Core/ResourcesTest.php index da2289c8ce..bfebbb69a9 100644 --- a/tests/phpunit/CRM/Core/ResourcesTest.php +++ b/tests/phpunit/CRM/Core/ResourcesTest.php @@ -26,7 +26,8 @@ class CRM_Core_ResourcesTest extends CiviUnitTestCase { protected $mapper; /** - * @var string for testing cache buster generation + * @var string + * For testing cache buster generation */ protected $cacheBusterString = 'xBkdk3'; @@ -305,6 +306,9 @@ class CRM_Core_ResourcesTest extends CiviUnitTestCase { $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() {