示例#1
0
 /**
  * @magentoDataFixture Mage/Adminhtml/controllers/Sales/_files/address.php
  */
 public function testAddressActionNoVAT()
 {
     $address = new Mage_Sales_Model_Order_Address();
     $address->load('a_unique_firstname', 'firstname');
     $this->getRequest()->setParam('address_id', $address->getId());
     $this->dispatch('admin/sales_order/address');
     $html = $this->getResponse()->getBody();
     $prohibitedStrings = array('validate-vat', 'validateVat', 'Validate VAT');
     foreach ($prohibitedStrings as $string) {
         $this->assertNotContains($string, $html, 'VAT button must not be shown while editing address', true);
     }
 }