Skip to content

Commit 507d183

Browse files
committed
Adjusting the Unit Test and changing the interface for deprecated constants
1 parent 614570f commit 507d183

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/internal/Magento/Framework/File/Uploader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Framework\File;
77

8-
use Magento\Framework\Image\Adapter\ConfigInterface;
8+
use Magento\Framework\Image\Adapter\UploadConfigInterface;
99

1010
/**
1111
* File upload class
@@ -140,14 +140,14 @@ class Uploader
140140
/**
141141
* Maximum Image Width resolution in pixels. For image resizing on client side
142142
* @deprecated
143-
* @see ConfigInterface::getMaxWidth()
143+
* @see UploadConfigInterface::getMaxWidth()
144144
*/
145145
const MAX_IMAGE_WIDTH = 1920;
146146

147147
/**
148148
* Maximum Image Height resolution in pixels. For image resizing on client side
149149
* @deprecated
150-
* @see ConfigInterface::getMaxHeight()
150+
* @see UploadConfigInterface::getMaxHeight()
151151
*/
152152
const MAX_IMAGE_HEIGHT = 1200;
153153

lib/internal/Magento/Framework/Image/Test/Unit/AdapterFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected function setUp()
1818
{
1919
$this->configMock = $this->createPartialMock(
2020
\Magento\Framework\Image\Adapter\ConfigInterface::class,
21-
['getAdapterAlias', 'getAdapters', 'getMaxWidth', 'getMaxHeight']
21+
['getAdapterAlias', 'getAdapters']
2222
);
2323

2424
$this->configMock->expects(

0 commit comments

Comments
 (0)