File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
dev/tests/integration/testsuite/Magento/Theme/Controller/Adminhtml/System/Design Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,15 @@ public function testUploadFaviconAction()
3939 $ this ->getRequest ()->setPostValue ('id ' , $ theme ->getId ());
4040 $ this ->dispatch ('backend/admin/design_config_fileUploader/save ' );
4141 $ output = $ this ->getResponse ()->getBody ();
42- $ this ->assertStringContainsString ('"error":"false" ' , $ output );
43- $ this ->assertStringContainsString ($ name , $ output );
42+ if (in_array ('imagick ' , get_loaded_extensions ())) {
43+ $ this ->assertStringContainsString ('"error":"false" ' , $ output );
44+ $ this ->assertStringContainsString ($ name , $ output );
45+ } else {
46+ $ this ->assertStringContainsString (
47+ '"error":"Required PHP extension \'Imagick \' was not loaded." ' ,
48+ $ output
49+ );
50+ }
4451 }
4552 }
4653
You can’t perform that action at this time.
0 commit comments