@@ -36,7 +36,7 @@ class ServiceTest extends \PHPUnit_Framework_TestCase
36
36
/**
37
37
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Convert\DataSize
38
38
*/
39
- protected $ dataSizeMock ;
39
+ protected $ dataSize ;
40
40
41
41
/**
42
42
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Filesystem
@@ -56,7 +56,7 @@ class ServiceTest extends \PHPUnit_Framework_TestCase
56
56
protected function setUp ()
57
57
{
58
58
$ this ->_uploader = $ this ->getMock ('Magento\MediaStorage\Model\File\Uploader ' , [], [], '' , false );
59
- $ this ->dataSizeMock = new DataSize ();
59
+ $ this ->dataSize = new DataSize ();
60
60
$ this ->_uploaderFactory = $ this ->getMock (
61
61
'Magento\MediaStorage\Model\File\UploaderFactory ' ,
62
62
['create ' ],
@@ -111,7 +111,7 @@ public function testUploadLimitNotConfigured()
111
111
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
112
112
$ this ->_filesystemMock ,
113
113
$ this ->_fileSizeMock ,
114
- $ this ->dataSizeMock ,
114
+ $ this ->dataSize ,
115
115
$ this ->_uploaderFactory
116
116
);
117
117
$ this ->assertEquals (600 * self ::MB_MULTIPLIER , $ this ->_service ->getJsUploadMaxSize ());
@@ -123,7 +123,7 @@ public function testGetCssUploadMaxSize()
123
123
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
124
124
$ this ->_filesystemMock ,
125
125
$ this ->_fileSizeMock ,
126
- $ this ->dataSizeMock ,
126
+ $ this ->dataSize ,
127
127
$ this ->_uploaderFactory ,
128
128
['css ' => '5M ' ]
129
129
);
@@ -135,7 +135,7 @@ public function testGetJsUploadMaxSize()
135
135
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
136
136
$ this ->_filesystemMock ,
137
137
$ this ->_fileSizeMock ,
138
- $ this ->dataSizeMock ,
138
+ $ this ->dataSize ,
139
139
$ this ->_uploaderFactory ,
140
140
['js ' => '3M ' ]
141
141
);
@@ -169,7 +169,7 @@ public function testGetFileContent()
169
169
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
170
170
$ this ->_filesystemMock ,
171
171
$ this ->_fileSizeMock ,
172
- $ this ->dataSizeMock ,
172
+ $ this ->dataSize ,
173
173
$ this ->_uploaderFactory ,
174
174
['js ' => '3M ' ]
175
175
);
@@ -183,7 +183,7 @@ public function testUploadCssFile()
183
183
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
184
184
$ this ->_filesystemMock ,
185
185
$ this ->_fileSizeMock ,
186
- $ this ->dataSizeMock ,
186
+ $ this ->dataSize ,
187
187
$ this ->_uploaderFactory ,
188
188
['css ' => '3M ' ]
189
189
);
@@ -239,7 +239,7 @@ public function testUploadInvalidCssFile()
239
239
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
240
240
$ this ->_filesystemMock ,
241
241
$ this ->_fileSizeMock ,
242
- $ this ->dataSizeMock ,
242
+ $ this ->dataSize ,
243
243
$ this ->_uploaderFactory ,
244
244
['css ' => '10M ' ]
245
245
);
@@ -262,7 +262,7 @@ public function testUploadJsFile()
262
262
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
263
263
$ this ->_filesystemMock ,
264
264
$ this ->_fileSizeMock ,
265
- $ this ->dataSizeMock ,
265
+ $ this ->dataSize ,
266
266
$ this ->_uploaderFactory ,
267
267
['js ' => '500M ' ]
268
268
);
@@ -311,7 +311,7 @@ public function testUploadInvalidJsFile()
311
311
$ this ->_service = new \Magento \Theme \Model \Uploader \Service (
312
312
$ this ->_filesystemMock ,
313
313
$ this ->_fileSizeMock ,
314
- $ this ->dataSizeMock ,
314
+ $ this ->dataSize ,
315
315
$ this ->_uploaderFactory ,
316
316
['js ' => '100M ' ]
317
317
);
0 commit comments