Skip to content

Commit fbd1d7d

Browse files
author
Ivan Gavryshko
committed
MAGETWO-51927: Setup crons out of memory issue
- CR: raneed value
1 parent 0e43951 commit fbd1d7d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/code/Magento/Theme/Test/Unit/Model/Uploader/ServiceTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ServiceTest extends \PHPUnit_Framework_TestCase
3636
/**
3737
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Convert\DataSize
3838
*/
39-
protected $dataSizeMock;
39+
protected $dataSize;
4040

4141
/**
4242
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Filesystem
@@ -56,7 +56,7 @@ class ServiceTest extends \PHPUnit_Framework_TestCase
5656
protected function setUp()
5757
{
5858
$this->_uploader = $this->getMock('Magento\MediaStorage\Model\File\Uploader', [], [], '', false);
59-
$this->dataSizeMock = new DataSize();
59+
$this->dataSize = new DataSize();
6060
$this->_uploaderFactory = $this->getMock(
6161
'Magento\MediaStorage\Model\File\UploaderFactory',
6262
['create'],
@@ -111,7 +111,7 @@ public function testUploadLimitNotConfigured()
111111
$this->_service = new \Magento\Theme\Model\Uploader\Service(
112112
$this->_filesystemMock,
113113
$this->_fileSizeMock,
114-
$this->dataSizeMock,
114+
$this->dataSize,
115115
$this->_uploaderFactory
116116
);
117117
$this->assertEquals(600 * self::MB_MULTIPLIER, $this->_service->getJsUploadMaxSize());
@@ -123,7 +123,7 @@ public function testGetCssUploadMaxSize()
123123
$this->_service = new \Magento\Theme\Model\Uploader\Service(
124124
$this->_filesystemMock,
125125
$this->_fileSizeMock,
126-
$this->dataSizeMock,
126+
$this->dataSize,
127127
$this->_uploaderFactory,
128128
['css' => '5M']
129129
);
@@ -135,7 +135,7 @@ public function testGetJsUploadMaxSize()
135135
$this->_service = new \Magento\Theme\Model\Uploader\Service(
136136
$this->_filesystemMock,
137137
$this->_fileSizeMock,
138-
$this->dataSizeMock,
138+
$this->dataSize,
139139
$this->_uploaderFactory,
140140
['js' => '3M']
141141
);
@@ -169,7 +169,7 @@ public function testGetFileContent()
169169
$this->_service = new \Magento\Theme\Model\Uploader\Service(
170170
$this->_filesystemMock,
171171
$this->_fileSizeMock,
172-
$this->dataSizeMock,
172+
$this->dataSize,
173173
$this->_uploaderFactory,
174174
['js' => '3M']
175175
);
@@ -183,7 +183,7 @@ public function testUploadCssFile()
183183
$this->_service = new \Magento\Theme\Model\Uploader\Service(
184184
$this->_filesystemMock,
185185
$this->_fileSizeMock,
186-
$this->dataSizeMock,
186+
$this->dataSize,
187187
$this->_uploaderFactory,
188188
['css' => '3M']
189189
);
@@ -239,7 +239,7 @@ public function testUploadInvalidCssFile()
239239
$this->_service = new \Magento\Theme\Model\Uploader\Service(
240240
$this->_filesystemMock,
241241
$this->_fileSizeMock,
242-
$this->dataSizeMock,
242+
$this->dataSize,
243243
$this->_uploaderFactory,
244244
['css' => '10M']
245245
);
@@ -262,7 +262,7 @@ public function testUploadJsFile()
262262
$this->_service = new \Magento\Theme\Model\Uploader\Service(
263263
$this->_filesystemMock,
264264
$this->_fileSizeMock,
265-
$this->dataSizeMock,
265+
$this->dataSize,
266266
$this->_uploaderFactory,
267267
['js' => '500M']
268268
);
@@ -311,7 +311,7 @@ public function testUploadInvalidJsFile()
311311
$this->_service = new \Magento\Theme\Model\Uploader\Service(
312312
$this->_filesystemMock,
313313
$this->_fileSizeMock,
314-
$this->dataSizeMock,
314+
$this->dataSize,
315315
$this->_uploaderFactory,
316316
['js' => '100M']
317317
);

0 commit comments

Comments
 (0)