/** * @magentoAdminConfigFixture any_config some_value */ public function testInitStoreAfter() { $this->_object->startTest($this); $this->_object->expects($this->at(0))->method('_getConfigValue')->with('any_config')->will($this->returnValue('some_value')); $this->_object->expects($this->at(1))->method('_setConfigValue')->with('any_config', 'some_value'); $this->_object->initStoreAfter(); }
/** * @magentoConfigFixture current_store web/unsecure/base_url http://example.com/ */ public function testInitStoreAfter() { $this->_object->startTest($this); $this->_object->expects($this->at(0))->method('_getConfigValue')->with('web/unsecure/base_url')->will($this->returnValue('http://localhost/')); $this->_object->expects($this->at(1))->method('_setConfigValue')->with('web/unsecure/base_url', 'http://example.com/'); $this->_object->initStoreAfter(); }