Skip to content

Commit 7cf917f

Browse files
author
Alexander Paliarush
committed
MAGETWO-50768: [PageCache] Category does not appear on Home Page
1 parent 078af98 commit 7cf917f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Catalog/Plugin/Block/Topmenu.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function __construct(
6363
* @param string $outermostClass
6464
* @param string $childrenWrapClass
6565
* @param int $limit
66+
* @return void
6667
* @SuppressWarnings("PMD.UnusedFormalParameter")
6768
*/
6869
public function beforeGetHtml(
@@ -100,6 +101,7 @@ public function beforeGetHtml(
100101
* Add list of associated identities to the top menu block for caching purposes.
101102
*
102103
* @param \Magento\Theme\Block\Html\Topmenu $subject
104+
* @return void
103105
*/
104106
public function beforeGetIdentities(\Magento\Theme\Block\Html\Topmenu $subject)
105107
{

app/code/Magento/Catalog/Test/Unit/Plugin/Block/TopmenuTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class TopmenuTest extends \PHPUnit_Framework_TestCase
1414
{
1515
/**
16-
* @var \Magento\Catalog\Plugin\Block\TopMenu
16+
* @var \Magento\Catalog\Plugin\Block\Topmenu
1717
*/
1818
protected $block;
1919

@@ -101,7 +101,7 @@ protected function setUp()
101101
->willReturn(new \ArrayIterator([]));
102102

103103
$this->block = (new ObjectManager($this))->getObject(
104-
'Magento\Catalog\Plugin\Block\TopMenu',
104+
\Magento\Catalog\Plugin\Block\Topmenu::class,
105105
[
106106
'catalogCategory' => $this->_catalogCategory,
107107
'menuCategoryData' => $this->menuCategoryData,

0 commit comments

Comments
 (0)