Skip to content

Commit

Permalink
Fix health index, and static test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 authored and Bartlomiejsz committed Dec 9, 2019
1 parent 2a5c87c commit d351549
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Catalog\Test\Unit\Model\Category;

use Magento\Catalog\Model\Category;
Expand Down Expand Up @@ -232,10 +233,12 @@ public function testGetDataNoFileExists()
->getMock();
$categoryMock->expects($this->exactly(2))
->method('getData')
->willReturnMap([
['', null, $categoryData],
['image', null, $categoryData['image']],
]);
->willReturnMap(
[
['', null, $categoryData],
['image', null, $categoryData['image']],
]
);
$categoryMock->method('getExistsStoreValueFlag')
->with('url_key')
->willReturn(false);
Expand Down Expand Up @@ -304,10 +307,12 @@ public function testGetData()
->getMock();
$categoryMock->expects($this->exactly(2))
->method('getData')
->willReturnMap([
['', null, $categoryData],
['image', null, $categoryData['image']],
]);
->willReturnMap(
[
['', null, $categoryData],
['image', null, $categoryData['image']],
]
);
$categoryMock->method('getExistsStoreValueFlag')
->with('url_key')
->willReturn(false);
Expand Down

0 comments on commit d351549

Please sign in to comment.