@@ -65,20 +65,6 @@ protected function setUp(): void
6565 $ this ->filesystem = $ this ->objectManager ->get (Filesystem::class);
6666 $ this ->mediaDirectory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::MEDIA );
6767 }
68-
69-
70- /**
71- * Test that catalog:image:resize command executes successfully in database storage mode
72- * with file missing from local folder
73- *
74- * @magentoDataFixture Magento/MediaStorage/_files/database_mode.php
75- * @magentoDataFixture Magento/MediaStorage/_files/product_with_missed_image.php
76- */
77- public function testDatabaseStorageMissingFile ()
78- {
79- $ this ->tester ->execute ([]);
80- $ this ->assertStringContainsString ('Product images resized successfully ' , $ this ->tester ->getDisplay ());
81- }
8268
8369 /**
8470 * Test that catalog:image:resize command executed successfully with missing image file
@@ -123,4 +109,17 @@ public function testExecuteWithZeroByteImage()
123109 $ this ->assertStringContainsString ('Wrong file ' , $ this ->tester ->getDisplay ());
124110 $ this ->mediaDirectory ->getDriver ()->deleteFile ($ this ->mediaDirectory ->getAbsolutePath ($ this ->fileName ));
125111 }
112+
113+ /**
114+ * Test that catalog:image:resize command executes successfully in database storage mode
115+ * with file missing from local folder
116+ *
117+ * @magentoDataFixture Magento/MediaStorage/_files/database_mode.php
118+ * @magentoDataFixture Magento/MediaStorage/_files/product_with_missed_image.php
119+ */
120+ public function testDatabaseStorageMissingFile ()
121+ {
122+ $ this ->tester ->execute ([]);
123+ $ this ->assertStringContainsString ('Product images resized successfully ' , $ this ->tester ->getDisplay ());
124+ }
126125}
0 commit comments