public function testCountryCodeAction() { //$this->markTestSkipped('Needs rework.'); $countryModel = new Varien_Object(); $countryModel->setIso2Code('DE'); $address = new Varien_Object(); $address->setCountryModel($countryModel); $modelMock = $this->getModelMock('customer/address', array('load')); $modelMock->expects($this->any())->method('load')->will($this->returnValue($address)); $this->replaceByMock('model', 'customer/address', $modelMock); $this->getRequest()->setHeader('X_REQUESTED_WITH', 'XMLHttpRequest'); $this->dispatch('dhlaccount/account/countrycode'); $this->assertRequestRoute('dhlaccount/account/countrycode'); $this->assertEquals('DE', $this->getResponse()->getOutputBody()); }