$actual = CRM_Utils_System::url('civicrm/foo/bar', 'foo=ab&bar=cd%26ef', false, null, false);
$this->assertEquals($expected, $actual);
}
-
+
function testUrlQueryArray() {
$config = CRM_Core_Config::singleton();
$this->assertTrue($config->userSystem instanceof CRM_Utils_System_UnitTests);
), false, null, false);
$this->assertEquals($expected, $actual);
}
+
+ public function testEvalUrl() {
+ $this->assertEquals(FALSE, CRM_Utils_System::evalUrl(FALSE));
+ $this->assertEquals('http://example.com/', CRM_Utils_System::evalUrl('http://example.com/'));
+ $this->assertEquals('http://example.com/?cms=UnitTests', CRM_Utils_System::evalUrl('http://example.com/?cms={uf}'));
+ }
}