Skip to content

Commit a438436

Browse files
Michail Slabkoorlangur
authored andcommitted
MAGETWO-31001: [GoInc] Improve Change Risk Analysis and Predictions Metric
- MAGETWO-31970: Magento\Catalog\Block\Navigation::_renderCategoryMenuItemHtml - revert invalid change in unit test
1 parent 5c72435 commit a438436

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/tests/unit/testsuite/Magento/Catalog/Block/NavigationTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ class NavigationTest extends \PHPUnit_Framework_TestCase
1414
protected function setUp()
1515
{
1616
$objectManager = new \Magento\TestFramework\Helper\ObjectManager($this);
17+
$categoryFactory = $this->getMock(
18+
'Magento\Catalog\Model\CategoryFactory',
19+
['create'],
20+
[],
21+
'',
22+
false
23+
);
1724
$this->block = $objectManager->getObject(
1825
'Magento\Catalog\Block\Navigation',
19-
[]
26+
['categoryFactory' => $categoryFactory]
2027
);
2128
}
2229

0 commit comments

Comments
 (0)