Skip to content

Commit f4200fc

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,15 @@ public function productDataProvider(): array
149149
* @return void
150150
*/
151151
#[
152-
DataFixture(ProductFixture::class, ['sku' => 'simple','name'=>'Simple Url Test Product','visibility' => Visibility::VISIBILITY_NOT_VISIBLE], 'p1'),
152+
DataFixture(ProductFixture::class, ['sku' => 'simple','name'=>'Simple Url Test Product',
153+
'visibility' => Visibility::VISIBILITY_NOT_VISIBLE]),
153154
]
154155
public function testUrlRewriteOnInvisibleProductEdit(array $expectedData): void
155156
{
156157
$product = $this->productRepository->get('simple', true, 0, true);
157158
$productUrlRewriteItems = $this->getEntityRewriteCollection($product->getId())->getItems();
158-
$this->assertEmpty($productUrlRewriteItems,'URL key should not be present for "Not visible individually" product');
159+
$this->assertEmpty($productUrlRewriteItems,
160+
'URL key should not be present for "Not visible individually" product');
159161

160162
//Update visibility and check the database entry
161163
$product->setVisibility(Visibility::VISIBILITY_BOTH);
@@ -173,7 +175,8 @@ public function testUrlRewriteOnInvisibleProductEdit(array $expectedData): void
173175
$product = $this->productRepository->save($product);
174176

175177
$productUrlRewriteItems = $this->getEntityRewriteCollection($product->getId())->getItems();
176-
$this->assertEmpty($productUrlRewriteItems,'URL key should not be present for "Not visible individually" product');
178+
$this->assertEmpty($productUrlRewriteItems,
179+
'URL key should not be present for "Not visible individually" product');
177180
}
178181

179182
/**

0 commit comments

Comments
 (0)