public function getCookiePath() { $path = Mage::getStoreConfig('web/cookie/cookie_path'); if (empty($path)) { $request = new Mage_Core_Controller_Request_Http(); $path = $request->getBasePath(); } return $path; }
public function testGetBasePath() { $this->assertEquals('/', $this->_model->getBasePath()); }