|
3 | 3 | * Copyright © Magento, Inc. All rights reserved.
|
4 | 4 | * See COPYING.txt for license details.
|
5 | 5 | */
|
| 6 | + |
6 | 7 | namespace Magento\Catalog\Test\Unit\Helper;
|
7 | 8 |
|
8 | 9 | use Magento\Catalog\Helper\Image;
|
@@ -295,32 +296,34 @@ protected function prepareWatermarkProperties($data)
|
295 | 296 | {
|
296 | 297 | $this->scopeConfig->expects($this->any())
|
297 | 298 | ->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( |
317 | 300 | [
|
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 | + ); |
324 | 327 |
|
325 | 328 | $this->image->expects($this->any())
|
326 | 329 | ->method('setWatermarkFile')
|
|
0 commit comments