From 7cf917f06e1cb4ffdd78f61c93c5cd27b311f85f Mon Sep 17 00:00:00 2001
From: Alexander Paliarush <apaliarush@magento.com>
Date: Tue, 5 Apr 2016 14:01:18 -0500
Subject: [PATCH] MAGETWO-50768: [PageCache] Category does not appear on Home
 Page

---
 app/code/Magento/Catalog/Plugin/Block/Topmenu.php             | 2 ++
 .../Magento/Catalog/Test/Unit/Plugin/Block/TopmenuTest.php    | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/code/Magento/Catalog/Plugin/Block/Topmenu.php b/app/code/Magento/Catalog/Plugin/Block/Topmenu.php
index 0ad8335efa2..1c817f1b4ed 100644
--- a/app/code/Magento/Catalog/Plugin/Block/Topmenu.php
+++ b/app/code/Magento/Catalog/Plugin/Block/Topmenu.php
@@ -63,6 +63,7 @@ class Topmenu
      * @param string $outermostClass
      * @param string $childrenWrapClass
      * @param int $limit
+     * @return void
      * @SuppressWarnings("PMD.UnusedFormalParameter")
      */
     public function beforeGetHtml(
@@ -100,6 +101,7 @@ class Topmenu
      * Add list of associated identities to the top menu block for caching purposes.
      *
      * @param \Magento\Theme\Block\Html\Topmenu $subject
+     * @return void
      */
     public function beforeGetIdentities(\Magento\Theme\Block\Html\Topmenu $subject)
     {
diff --git a/app/code/Magento/Catalog/Test/Unit/Plugin/Block/TopmenuTest.php b/app/code/Magento/Catalog/Test/Unit/Plugin/Block/TopmenuTest.php
index 9c4e755433d..e0fe2deb232 100644
--- a/app/code/Magento/Catalog/Test/Unit/Plugin/Block/TopmenuTest.php
+++ b/app/code/Magento/Catalog/Test/Unit/Plugin/Block/TopmenuTest.php
@@ -13,7 +13,7 @@ use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
 class TopmenuTest extends \PHPUnit_Framework_TestCase
 {
     /**
-     * @var \Magento\Catalog\Plugin\Block\TopMenu
+     * @var \Magento\Catalog\Plugin\Block\Topmenu
      */
     protected $block;
 
@@ -101,7 +101,7 @@ class TopmenuTest extends \PHPUnit_Framework_TestCase
             ->willReturn(new \ArrayIterator([]));
 
         $this->block = (new ObjectManager($this))->getObject(
-            'Magento\Catalog\Plugin\Block\TopMenu',
+            \Magento\Catalog\Plugin\Block\Topmenu::class,
             [
                 'catalogCategory' => $this->_catalogCategory,
                 'menuCategoryData' => $this->menuCategoryData,
-- 
GitLab