public function setUp()
 {
     parent::setUp();
     $this->_store = $this->getModelMockBuilder('core/store')->disableOriginalConstructor()->setMethods(array('getId'))->getMock();
     $this->_store->expects($this->any())->method('getId')->will($this->returnValue(0));
     $this->_stores = array(0 => $this->_store);
     $this->_collection = $this->getResourceModelMock('catalog/product_collection', array('load', 'addFieldToFilter'));
     $this->_batchContainer = $this->getModelMock('ebayenterprise_catalog/pim_batch_container', array('addBatch'));
     $this->_langHelper = $this->getHelperMock('eb2ccore/languages', array('getStores'));
     $this->_langHelper->expects($this->any())->method('getStores')->will($this->returnValue($this->_stores));
     $this->_prodHelper = $this->getHelperMock('ebayenterprise_catalog/data', array('getDefaultStoreViewId'));
     $this->_prodHelper->expects($this->any())->method('getDefaultStoreViewId')->will($this->returnValue(0));
 }
 /**
  * Process the feed for a single language by extracting data for the given
  * language and then importing the data for each store view with that language.
  * @param  array $siteFilter
  * @param  array $cfgData
  * @param  EbayEnterprise_Catalog_Interface_Import_Items $items
  * @return self
  */
 protected function _processForLanguage(array $siteFilter, array $cfgData, EbayEnterprise_Catalog_Interface_Import_Items $items)
 {
     $splitDoc = $this->_splitByFilter($siteFilter, $cfgData['xslt_single_template_path'], $cfgData['xslt_module']);
     foreach ($this->_languageHelper->getStores($siteFilter['lang_code']) as $store) {
         // do not reprocess the default store
         $storeId = $store->getId();
         if ($siteFilter['mage_store_id'] === $storeId && $storeId !== Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID) {
             $this->_importExtractedData($splitDoc, $storeId, $cfgData, $items);
         }
     }
     return $this;
 }