File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
app/code/Magento/Catalog/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,17 @@ class ImageUploaderTest extends \PHPUnit\Framework\TestCase
6969 /**
7070 * Allowed extensions
7171 *
72- * @var string
72+ * @var array
7373 */
7474 private $ allowedExtensions ;
7575
76+ /**
77+ * Allowed mime types
78+ *
79+ * @var array
80+ */
81+ private $ allowedMimeTypes ;
82+
7683 protected function setUp ()
7784 {
7885 $ this ->coreFileStorageDatabaseMock = $ this ->createMock (
@@ -97,6 +104,7 @@ protected function setUp()
97104 $ this ->baseTmpPath = 'base/tmp/ ' ;
98105 $ this ->basePath = 'base/real/ ' ;
99106 $ this ->allowedExtensions = ['.jpg ' ];
107+ $ this ->allowedMimeTypes = ['image/jpg ' ];
100108
101109 $ this ->imageUploader =
102110 new \Magento \Catalog \Model \ImageUploader (
@@ -107,7 +115,8 @@ protected function setUp()
107115 $ this ->loggerMock ,
108116 $ this ->baseTmpPath ,
109117 $ this ->basePath ,
110- $ this ->allowedExtensions
118+ $ this ->allowedExtensions ,
119+ $ this ->allowedMimeTypes
111120 );
112121 }
113122
You can’t perform that action at this time.
0 commit comments