projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15330 from mattwire/paymentprocessor_testmodelivemode
[civicrm-core.git]
/
tests
/
phpunit
/
CRM
/
Core
/
ResourcesTest.php
diff --git
a/tests/phpunit/CRM/Core/ResourcesTest.php
b/tests/phpunit/CRM/Core/ResourcesTest.php
index da2289c8ce55510fc62d108fbbec53badfb5476e..bfebbb69a9d8c2113382586a5df6d6e2d899ede4 100644
(file)
--- 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;
/**
protected $mapper;
/**
- * @var string for testing cache buster generation
+ * @var string
+ * For testing cache buster generation
*/
protected $cacheBusterString = 'xBkdk3';
*/
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 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() {
}
public function testGlob() {