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()
39
39
$ this ->getRequest ()->setPostValue ('id ' , $ theme ->getId ());
40
40
$ this ->dispatch ('backend/admin/design_config_fileUploader/save ' );
41
41
$ 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
+ }
44
51
}
45
52
}
46
53
You can’t perform that action at this time.
0 commit comments