@@ -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