File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Gallery Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -269,12 +269,13 @@ public function testExecuteWithTwoImagesAndChangedPosition(): void
269
269
public function testExecuteWithImageToDelete (): void
270
270
{
271
271
$ product = $ this ->getProduct ();
272
+ $ image = $ product ->getImage ();
272
273
$ this ->updateProductGalleryImages ($ product , ['removed ' => '1 ' ]);
273
274
$ this ->updateHandler ->execute ($ product );
274
275
$ productImages = $ this ->galleryResource ->loadProductGalleryByAttributeId ($ product , $ this ->mediaAttributeId );
275
276
$ this ->assertCount (0 , $ productImages );
276
277
$ this ->assertFileNotExists (
277
- $ this ->mediaDirectory ->getAbsolutePath ($ this ->config ->getBaseMediaPath () . ' /m/a/magento_image.jpg ' )
278
+ $ this ->mediaDirectory ->getAbsolutePath ($ this ->config ->getBaseMediaPath () . $ image )
278
279
);
279
280
$ defaultImages = $ this ->productResource ->getAttributeRawValue (
280
281
$ product ->getId (),
You can’t perform that action at this time.
0 commit comments