Skip to content

Commit a8d9be1

Browse files
committed
ENGCOM-4357: Static tests fix.
1 parent a80943f commit a8d9be1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Products/AdaptUrlRewritesToVisibilityAttribute.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public function execute(array $productIds, int $visibility): void
9292
} catch (UrlAlreadyExistsException $e) {
9393
throw new UrlAlreadyExistsException(
9494
__(
95-
'Can not change the visibility of the product with SKU equals "%1". URL key "%2" for specified store already exists.',
95+
'Can not change the visibility of the product with SKU equals "%1". '
96+
. 'URL key "%2" for specified store already exists.',
9697
$product->getSku(),
9798
$product->getUrlKey()
9899
),

dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Observer/ProcessUrlRewriteOnChangeVisibilityObserverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ public function testErrorOnDuplicatedUrlKey()
160160
$productIds[] = $this->productRepository->get($sku)->getId();
161161
}
162162
$this->expectException(UrlAlreadyExistsException::class);
163-
$this->expectExceptionMessage('Can not change the visibility of the product with SKU equals "product2". URL key "product-1" for specified store already exists.');
163+
$this->expectExceptionMessage('Can not change the visibility of the product with SKU equals "product2". '
164+
. 'URL key "product-1" for specified store already exists.');
164165

165166
$this->eventManager->dispatch(
166167
'catalog_product_attribute_update_before',

0 commit comments

Comments
 (0)