Skip to content

Commit eaca4d3

Browse files
committed
ACP2E-3009: async.operations.all executed and created an error.
1 parent 7e4b997 commit eaca4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ProductLink/RepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function testSaveWithException()
182182

183183
public function testSaveWithoutLinkedProductSku()
184184
{
185-
$this->expectException('Magento\Framework\Exception\NoSuchEntityException');
185+
$this->expectException('Magento\Framework\Exception\CouldNotSaveException');
186186
$this->expectExceptionMessage('The linked product SKU is invalid. Verify the data and try again.');
187187
$entityMock = $this->createMock(\Magento\Catalog\Model\ProductLink\Link::class);
188188
$entityMock->expects($this->any())->method('getSku')->willReturn('sku1');

0 commit comments

Comments
 (0)