Skip to content

Commit 2b089fd

Browse files
author
vpaladiychuk
committed
MAGETWO-34990: Eliminate exceptions from the list
1 parent 8a2e857 commit 2b089fd

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/Catalog

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Resource/Product/Indexer/Price/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function create($className, array $data = [])
4242

4343
if (!$indexerPrice instanceof \Magento\Catalog\Model\Resource\Product\Indexer\Price\DefaultPrice) {
4444
throw new \Magento\Framework\Exception\LocalizedException(
45-
__('%1 doesn\'t extends \Magento\Catalog\Model\Resource\Product\Indexer\Price\DefaultPrice', $className)
45+
__('%1 doesn\'t extend \Magento\Catalog\Model\Resource\Product\Indexer\Price\DefaultPrice', $className)
4646
);
4747
}
4848
return $indexerPrice;

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Eav/Action/FullTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testExecuteWithAdapterErrorThrowsException()
3636
$eavSourceFactory
3737
);
3838

39-
$this->setExpectedException('\Magento\Framework\Exception\LocalizedException', $exceptionMessage);
39+
$this->setExpectedException('Magento\Framework\Exception\LocalizedException', $exceptionMessage);
4040

4141
$model->execute();
4242
}

0 commit comments

Comments
 (0)