public function testRestore() { Config::set('index', 'page1'); $backup = Config::backup(); Config::set('index', 'page2'); $this->assertEquals('page2', Config::get('index')); Config::restore($backup); $this->assertEquals('page1', Config::get('index')); }
protected function setUp() { $this->_backup = Config::backup(); Config::set('page', dirname(__FILE__) . '/page'); $this->_objects = dirname(__FILE__) . '/page/object'; }
protected function setUp() { $this->_backup = Config::backup(); Config::set('page', dirname(__FILE__) . '/page'); $this->_indices = dirname(__FILE__) . '/page/index'; }
protected function setUp() { $this->_backup = Config::backup(); $this->_pages = dirname(__FILE__) . '/page'; Config::set('page', $this->_pages); }