protected function _init() { parent::_init(); $this->_timestamp = time(); $this->_tmp_dir = sys_get_temp_dir() . '/li3_fs_' . $this->_timestamp . '_test-2'; Locations::add('test-2', array('adapter' => 'Filesystem', 'url' => 'http://example.com/tmp/', 'location' => $this->_tmp_dir)); $this->_adapter = Locations::get('test'); }
public function testAdding() { $location = Locations::add('test', array('adapter' => 'Filesystem', 'location' => Libraries::path(false, array('dirs' => true)) . '/resources/tmp')); $this->assertTrue(is_array($location)); }