Skip to content
Snippets Groups Projects
Commit 7cf917f0 authored by Alexander Paliarush's avatar Alexander Paliarush
Browse files

MAGETWO-50768: [PageCache] Category does not appear on Home Page

parent 078af98a
Branches
No related merge requests found
...@@ -63,6 +63,7 @@ class Topmenu ...@@ -63,6 +63,7 @@ class Topmenu
* @param string $outermostClass * @param string $outermostClass
* @param string $childrenWrapClass * @param string $childrenWrapClass
* @param int $limit * @param int $limit
* @return void
* @SuppressWarnings("PMD.UnusedFormalParameter") * @SuppressWarnings("PMD.UnusedFormalParameter")
*/ */
public function beforeGetHtml( public function beforeGetHtml(
...@@ -100,6 +101,7 @@ class Topmenu ...@@ -100,6 +101,7 @@ class Topmenu
* Add list of associated identities to the top menu block for caching purposes. * Add list of associated identities to the top menu block for caching purposes.
* *
* @param \Magento\Theme\Block\Html\Topmenu $subject * @param \Magento\Theme\Block\Html\Topmenu $subject
* @return void
*/ */
public function beforeGetIdentities(\Magento\Theme\Block\Html\Topmenu $subject) public function beforeGetIdentities(\Magento\Theme\Block\Html\Topmenu $subject)
{ {
......
...@@ -13,7 +13,7 @@ use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; ...@@ -13,7 +13,7 @@ use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
class TopmenuTest extends \PHPUnit_Framework_TestCase class TopmenuTest extends \PHPUnit_Framework_TestCase
{ {
/** /**
* @var \Magento\Catalog\Plugin\Block\TopMenu * @var \Magento\Catalog\Plugin\Block\Topmenu
*/ */
protected $block; protected $block;
...@@ -101,7 +101,7 @@ class TopmenuTest extends \PHPUnit_Framework_TestCase ...@@ -101,7 +101,7 @@ class TopmenuTest extends \PHPUnit_Framework_TestCase
->willReturn(new \ArrayIterator([])); ->willReturn(new \ArrayIterator([]));
$this->block = (new ObjectManager($this))->getObject( $this->block = (new ObjectManager($this))->getObject(
'Magento\Catalog\Plugin\Block\TopMenu', \Magento\Catalog\Plugin\Block\Topmenu::class,
[ [
'catalogCategory' => $this->_catalogCategory, 'catalogCategory' => $this->_catalogCategory,
'menuCategoryData' => $this->menuCategoryData, 'menuCategoryData' => $this->menuCategoryData,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment