Exemplo n.º 1
0
 public function testResetConfig()
 {
     $this->_subject->setConfig('general/store_information/name', 'fake');
     $this->_subject->setConfig('general/store_information/name', 'fake!!!', 0);
     $this->assertEquals('fake', Mage::getStoreConfig('general/store_information/name'));
     $this->assertEquals('fake!!!', Mage::app()->getStore(0)->getConfig('general/store_information/name'));
     $this->_subject->resetConfig();
     $this->assertNotEquals('fake', Mage::getStoreConfig('general/store_information/name'));
     $this->assertNotEquals('fake!!!', Mage::app()->getStore(0)->getConfig('general/store_information/name'));
 }
Exemplo n.º 2
0
 public function testConfigWasRegistered()
 {
     $this->_subject->setConfig('general/store_information/name', 'fake');
     $this->assertEquals('fake', Mage::getStoreConfig('general/store_information/name'));
 }