Skip to content

Commit 2621d51

Browse files
authored
static-test fix
1 parent 6496f4e commit 2621d51

File tree

1 file changed

+28
-25
lines changed

1 file changed

+28
-25
lines changed

app/code/Magento/Catalog/Test/Unit/Helper/ImageTest.php

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Catalog\Test\Unit\Helper;
78

89
use Magento\Catalog\Helper\Image;
@@ -295,32 +296,34 @@ protected function prepareWatermarkProperties($data)
295296
{
296297
$this->scopeConfig->expects($this->any())
297298
->method('getValue')
298-
->willReturnMap([
299-
[
300-
'design/watermark/' . $data['type'] . '_image',
301-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
302-
null,
303-
$data['watermark']
304-
],
305-
[
306-
'design/watermark/' . $data['type'] . '_imageOpacity',
307-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
308-
null,
309-
$data['watermark_opacity']
310-
],
311-
[
312-
'design/watermark/' . $data['type'] . '_position',
313-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
314-
null,
315-
$data['watermark_position']
316-
],
299+
->willReturnMap(
317300
[
318-
'design/watermark/' . $data['type'] . '_size',
319-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
320-
null,
321-
$data['watermark_size']
322-
],
323-
]);
301+
[
302+
'design/watermark/' . $data['type'] . '_image',
303+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
304+
null,
305+
$data['watermark']
306+
],
307+
[
308+
'design/watermark/' . $data['type'] . '_imageOpacity',
309+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
310+
null,
311+
$data['watermark_opacity']
312+
],
313+
[
314+
'design/watermark/' . $data['type'] . '_position',
315+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
316+
null,
317+
$data['watermark_position']
318+
],
319+
[
320+
'design/watermark/' . $data['type'] . '_size',
321+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
322+
null,
323+
$data['watermark_size']
324+
],
325+
]
326+
);
324327

325328
$this->image->expects($this->any())
326329
->method('setWatermarkFile')

0 commit comments

Comments
 (0)