We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4b997 commit eaca4d3Copy full SHA for eaca4d3
app/code/Magento/Catalog/Test/Unit/Model/ProductLink/RepositoryTest.php
@@ -182,7 +182,7 @@ public function testSaveWithException()
182
183
public function testSaveWithoutLinkedProductSku()
184
{
185
- $this->expectException('Magento\Framework\Exception\NoSuchEntityException');
+ $this->expectException('Magento\Framework\Exception\CouldNotSaveException');
186
$this->expectExceptionMessage('The linked product SKU is invalid. Verify the data and try again.');
187
$entityMock = $this->createMock(\Magento\Catalog\Model\ProductLink\Link::class);
188
$entityMock->expects($this->any())->method('getSku')->willReturn('sku1');
0 commit comments