function testGetRootPath() { Config::load(dirname(__FILE__) . '/_fixtures/local.inc'); $f = new Tracker_FormElement_Field_FileTestVersion(); $f->setReturnValue('getId', 123); $this->assertEqual($f->getRootPath(), Config::get('sys_data_dir') . '/tracker/123'); }
function testGetRootPath() { ForgeConfig::set('sys_data_dir', dirname(__FILE__) . '/data'); $f = new Tracker_FormElement_Field_FileTestVersion(); $f->setReturnValue('getId', 123); $this->assertEqual($f->getRootPath(), ForgeConfig::get('sys_data_dir') . '/tracker/123'); }