public function testGetURL() { $this->assertEquals('http://core-app/dir/file%20name.txt', $this->res->getURL('civicrm', 'dir/file%20name.txt')); $this->assertEquals('http://ext-dir/com.example.ext/dir/file%20name.txt', $this->res->getURL('com.example.ext', 'dir/file%20name.txt')); $this->assertEquals('http://core-app/', $this->res->getURL('civicrm')); $this->assertEquals('http://ext-dir/com.example.ext/', $this->res->getURL('com.example.ext')); }