@@ -149,13 +149,15 @@ public function productDataProvider(): array
149
149
* @return void
150
150
*/
151
151
#[
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 ]),
153
154
]
154
155
public function testUrlRewriteOnInvisibleProductEdit (array $ expectedData ): void
155
156
{
156
157
$ product = $ this ->productRepository ->get ('simple ' , true , 0 , true );
157
158
$ 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 ' );
159
161
160
162
//Update visibility and check the database entry
161
163
$ product ->setVisibility (Visibility::VISIBILITY_BOTH );
@@ -173,7 +175,8 @@ public function testUrlRewriteOnInvisibleProductEdit(array $expectedData): void
173
175
$ product = $ this ->productRepository ->save ($ product );
174
176
175
177
$ 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 ' );
177
180
}
178
181
179
182
/**
0 commit comments