/**
  * Inject general item data into the order item payload.
  *
  * @return self
  */
 protected function _injectItemData()
 {
     $this->_orderItem->setLineNumber($this->_item->getId())->setItemId($this->_item->getSku())->setQuantity((int) $this->_item->getQty())->setDescription($this->_item->getName())->setHtsCode($this->_taxHelper->getProductHtsCodeByCountry($this->_itemProduct, $this->_address->getCountryId()))->setManufacturingCountryCode($this->_itemProduct->getCountryOfManufacture());
     return $this;
 }
 /**
  * When a product has not HTS codes available, null should be returned
  * when attpemting to get an HTS code.
  */
 public function testGetProductHtsCodeByCountryNoMatchingHtsCode()
 {
     $product = Mage::getModel('catalog/product', ['hts_codes' => serialize([['destination_country' => 'US', 'hst_code' => 'US-HTS-Code']])]);
     $this->assertNull($this->_helper->getProductHtsCodeByCountry($product, 'CA'));
 }