Skip to content

Commit

Permalink
Merge pull request #327 from magento-api/indexer
Browse files Browse the repository at this point in the history
[PHP7 Indexer]: Remi PHP 7.0.1 failure on L1 segmentation fault on SOAP / REST
  • Loading branch information
Korshenko, Olexii(okorshenko) committed Jan 20, 2016
2 parents 31af91c + 6fd1729 commit df54675
Show file tree
Hide file tree
Showing 8 changed files with 893 additions and 410 deletions.
22 changes: 20 additions & 2 deletions app/code/Magento/Bundle/Test/Unit/Model/CartItemProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,16 @@ public function testConvertToBuyRequest()
$dataObjectMock = $this->getMock('\Magento\Framework\DataObject');
$optionExtensionMock = $this->getMock(
'\Magento\Quote\Api\Data\ProductOptionExtensionInterface',
['getBundleOptions'],
[
'getBundleOptions',
'getCustomOptions',
'setCustomOptions',
'setBundleOptions',
'getDownloadableOption',
'setDownloadableOption',
'getConfigurableItemOptions',
'setConfigurableItemOptions'
],
[],
'',
false
Expand Down Expand Up @@ -128,7 +137,16 @@ public function testProcessProductOptions()
$productOptionMock = $this->getMock('\Magento\Quote\Model\Quote\ProductOption', [], [], '', false);
$optionExtensionMock = $this->getMock(
'\Magento\Quote\Api\Data\ProductOptionExtensionInterface',
['setBundleOptions'],
[
'getBundleOptions',
'getCustomOptions',
'setCustomOptions',
'setBundleOptions',
'getDownloadableOption',
'setDownloadableOption',
'getConfigurableItemOptions',
'setConfigurableItemOptions'
],
[],
'',
false
Expand Down
11 changes: 3 additions & 8 deletions app/code/Magento/CatalogSearch/Model/Indexer/Fulltext.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ public function execute($ids)
foreach ($storeIds as $storeId) {
$dimension = $this->dimensionFactory->create(['name' => 'scope', 'value' => $storeId]);
$saveHandler->deleteIndex([$dimension], new \ArrayObject($ids));
$saveHandler->saveIndex(
[$dimension],
$this->fullAction->rebuildStoreIndex($storeId, $ids)
);
$saveHandler->saveIndex([$dimension], $this->fullAction->rebuildStoreIndex($storeId, $ids));
}
}

Expand All @@ -111,10 +108,8 @@ public function executeFull()
foreach ($storeIds as $storeId) {
$dimension = $this->dimensionFactory->create(['name' => 'scope', 'value' => $storeId]);
$saveHandler->cleanIndex([$dimension]);
$saveHandler->saveIndex(
[$dimension],
$this->fullAction->rebuildStoreIndex($storeId)
);
$saveHandler->saveIndex([$dimension], $this->fullAction->rebuildStoreIndex($storeId));

}
$this->fulltextResource->resetSearchResults();
$this->searchRequestConfig->reset();
Expand Down
Loading

0 comments on commit df54675

Please sign in to comment.