Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 62717e8

Browse files
author
olysenko
committed
Merge remote-tracking branch 'origin/2.3-develop' into chaika_november
2 parents 6ae5a06 + b9bd738 commit 62717e8

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

app/code/Magento/Theme/Block/Html/Topmenu.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -361,19 +361,6 @@ public function getIdentities()
361361
return $this->identities;
362362
}
363363

364-
/**
365-
* Get cache key informative items
366-
*
367-
* @return array
368-
* @since 100.1.0
369-
*/
370-
public function getCacheKeyInfo()
371-
{
372-
$keyInfo = parent::getCacheKeyInfo();
373-
$keyInfo[] = $this->getUrl('*/*/*', ['_current' => true, '_query' => '']);
374-
return $keyInfo;
375-
}
376-
377364
/**
378365
* Get tags array for saving cache
379366
*

app/code/Magento/Theme/Test/Unit/Block/Html/TopmenuTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ public function testGetCacheKeyInfo()
189189
$treeFactory = $this->createMock(\Magento\Framework\Data\TreeFactory::class);
190190

191191
$topmenu = new Topmenu($this->context, $nodeFactory, $treeFactory);
192-
$this->urlBuilder->expects($this->once())->method('getUrl')->with('*/*/*')->willReturn('123');
193192
$this->urlBuilder->expects($this->once())->method('getBaseUrl')->willReturn('baseUrl');
194193
$store = $this->getMockBuilder(\Magento\Store\Model\Store::class)
195194
->disableOriginalConstructor()
@@ -199,7 +198,7 @@ public function testGetCacheKeyInfo()
199198
$this->storeManager->expects($this->once())->method('getStore')->willReturn($store);
200199

201200
$this->assertEquals(
202-
['BLOCK_TPL', '321', null, 'base_url' => 'baseUrl', 'template' => null, '123'],
201+
['BLOCK_TPL', '321', null, 'base_url' => 'baseUrl', 'template' => null],
203202
$topmenu->getCacheKeyInfo()
204203
);
205204
}

0 commit comments

Comments
 (0)