|
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\Model\Category;
|
7 | 8 |
|
8 | 9 | use Magento\Catalog\Model\Category;
|
@@ -232,10 +233,12 @@ public function testGetDataNoFileExists()
|
232 | 233 | ->getMock();
|
233 | 234 | $categoryMock->expects($this->exactly(2))
|
234 | 235 | ->method('getData')
|
235 |
| - ->willReturnMap([ |
236 |
| - ['', null, $categoryData], |
237 |
| - ['image', null, $categoryData['image']], |
238 |
| - ]); |
| 236 | + ->willReturnMap( |
| 237 | + [ |
| 238 | + ['', null, $categoryData], |
| 239 | + ['image', null, $categoryData['image']], |
| 240 | + ] |
| 241 | + ); |
239 | 242 | $categoryMock->method('getExistsStoreValueFlag')
|
240 | 243 | ->with('url_key')
|
241 | 244 | ->willReturn(false);
|
@@ -304,10 +307,12 @@ public function testGetData()
|
304 | 307 | ->getMock();
|
305 | 308 | $categoryMock->expects($this->exactly(2))
|
306 | 309 | ->method('getData')
|
307 |
| - ->willReturnMap([ |
308 |
| - ['', null, $categoryData], |
309 |
| - ['image', null, $categoryData['image']], |
310 |
| - ]); |
| 310 | + ->willReturnMap( |
| 311 | + [ |
| 312 | + ['', null, $categoryData], |
| 313 | + ['image', null, $categoryData['image']], |
| 314 | + ] |
| 315 | + ); |
311 | 316 | $categoryMock->method('getExistsStoreValueFlag')
|
312 | 317 | ->with('url_key')
|
313 | 318 | ->willReturn(false);
|
|
0 commit comments