Skip to content

Commit 65cdb4c

Browse files
authored
Merge pull request magento#4538 from magento-epam/EPAM-PR-68
2 parents 12bcf3f + cb17bbe commit 65cdb4c

File tree

8 files changed

+1
-229
lines changed

8 files changed

+1
-229
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
*/
1515
class Topmenu
1616
{
17-
/**
18-
* Cache tag for menu block
19-
*/
20-
private $cacheTag = "top_menu";
21-
2217
/**
2318
* Catalog category
2419
*
@@ -124,7 +119,6 @@ public function beforeGetIdentities(\Magento\Theme\Block\Html\Topmenu $subject)
124119
$subject->addIdentity(Category::CACHE_TAG);
125120
$rootId = $this->storeManager->getStore()->getRootCategoryId();
126121
$storeId = $this->storeManager->getStore()->getId();
127-
$currentCategory = $this->getCurrentCategory();
128122
/** @var \Magento\Catalog\Model\ResourceModel\Category\Collection $collection */
129123
$collection = $this->getCategoryTree($storeId, $rootId);
130124
$mapping = [$rootId => $subject->getMenu()]; // use nodes stack to avoid recursion
@@ -134,9 +128,6 @@ public function beforeGetIdentities(\Magento\Theme\Block\Html\Topmenu $subject)
134128
}
135129
$subject->addIdentity(Category::CACHE_TAG . '_' . $category->getId());
136130
}
137-
if ($currentCategory) {
138-
$subject->addIdentity($this->cacheTag . '_' . Category::CACHE_TAG . '_' . $currentCategory->getId());
139-
}
140131
}
141132

142133
/**

app/code/Magento/Catalog/Test/Mftf/Section/AdminCategorySidebarTreeSection.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
<element name="expandAll" type="button" selector=".tree-actions a:last-child"/>
1414
<element name="categoryTreeRoot" type="text" selector="div.x-tree-root-node>li.x-tree-node:first-of-type>div.x-tree-node-el:first-of-type" timeout="30"/>
1515
<element name="categoryInTree" type="text" selector="//a/span[contains(text(), '{{name}}')]" parameterized="true" timeout="30"/>
16-
<element name="categoryHighlighted" type="text" selector="//ul[@id='ui-id-2']//li//a/span[contains(text(),'{{name}}')]/../.." parameterized="true" timeout="30"/>
17-
<element name="categoryNotHighlighted" type="text" selector="ul[id=\'ui-id-2\'] li[class~=\'active\']" timeout="30"/>
1816
<element name="categoryInTreeUnderRoot" type="text" selector="//li/ul/li[@class='x-tree-node']/div/a/span[contains(text(), '{{name}}')]" parameterized="true"/>
1917
<element name="lastCreatedCategory" type="block" selector=".x-tree-root-ct li li:last-child" />
2018
<element name="treeContainer" type="block" selector=".tree-holder" />

app/code/Magento/Catalog/Test/Mftf/Test/CheckCurrentCategoryIsHighlightedAndProductsDisplayed.xml

Lines changed: 0 additions & 73 deletions
This file was deleted.

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/NoOptionAvailableToConfigureDisabledProductTest.xml

Lines changed: 0 additions & 128 deletions
This file was deleted.

app/code/Magento/Sales/Controller/Adminhtml/Order/Create.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function __construct(
5555
ForwardFactory $resultForwardFactory
5656
) {
5757
parent::__construct($context);
58+
$productHelper->setSkipSaleableCheck(true);
5859
$this->escaper = $escaper;
5960
$this->resultPageFactory = $resultPageFactory;
6061
$this->resultForwardFactory = $resultForwardFactory;

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormConfigureProductSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminOrderFormConfigureProductSection">
12-
<element name="configure" type="button" selector="//a[@product_id='{{productId}}']" parameterized="true"/>
1312
<element name="optionSelect" type="select" selector="//div[contains(@class,'product-options')]//select[//label[text() = '{{option}}']]" parameterized="true"/>
1413
<element name="optionSelectNew" type="select" selector="//label[text()='{{option1}}']/following-sibling::div/select" parameterized="true"/>
1514
<element name="quantity" type="input" selector="#product_composite_configure_input_qty"/>

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithBundleProductTest.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@
7777
<field key="qty">2</field>
7878
</createData>
7979
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
80-
81-
<!--Go to bundle product page and save it to force "in stock" status-->
82-
<actionGroup ref="goToProductPageViaID" stepKey="goToBundleProductPage">
83-
<argument name="productId" value="$product.id$"/>
84-
</actionGroup>
85-
<actionGroup ref="saveProductForm" stepKey="saveBundleProduct"/>
8680
</before>
8781

8882
<!--Create new customer order-->

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@ protected function getCacheLifetime()
7474
return parent::getCacheLifetime() ?: 3600;
7575
}
7676

77-
/**
78-
* Get cache key informative items
79-
*
80-
* @return array
81-
*/
82-
public function getCacheKeyInfo()
83-
{
84-
return array_merge(parent::getCacheKeyInfo(), $this->getIdentities());
85-
}
86-
8777
/**
8878
* Get top menu html
8979
*

0 commit comments

Comments
 (0)