Skip to content

Commit a3a8256

Browse files
[ACQE-4664] Static test warning fixes
1 parent f4200fc commit a3a8256

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Model/ProductUrlRewriteTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ public function testUrlRewriteOnInvisibleProductEdit(array $expectedData): void
156156
{
157157
$product = $this->productRepository->get('simple', true, 0, true);
158158
$productUrlRewriteItems = $this->getEntityRewriteCollection($product->getId())->getItems();
159-
$this->assertEmpty($productUrlRewriteItems,
160-
'URL key should not be present for "Not visible individually" product');
159+
$this->assertEmpty(
160+
$productUrlRewriteItems,
161+
'URL key should not be present for "Not visible individually" product'
162+
);
161163

162164
//Update visibility and check the database entry
163165
$product->setVisibility(Visibility::VISIBILITY_BOTH);
@@ -175,8 +177,10 @@ public function testUrlRewriteOnInvisibleProductEdit(array $expectedData): void
175177
$product = $this->productRepository->save($product);
176178

177179
$productUrlRewriteItems = $this->getEntityRewriteCollection($product->getId())->getItems();
178-
$this->assertEmpty($productUrlRewriteItems,
179-
'URL key should not be present for "Not visible individually" product');
180+
$this->assertEmpty(
181+
$productUrlRewriteItems,
182+
'URL key should not be present for "Not visible individually" product'
183+
);
180184
}
181185

182186
/**

0 commit comments

Comments
 (0)