Skip to content

Commit 219024d

Browse files
author
Oleksandr Iegorov
committed
MC-29755: X-Magento-Tags header too large
1 parent d2e252c commit 219024d

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

dev/tests/integration/testsuite/Magento/ConfigurableProduct/Model/Plugin/Frontend/ProductIdentitiesExtenderTest.php

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,7 @@
1919
class ProductIdentitiesExtenderTest extends TestCase
2020
{
2121
/**
22-
* Check, product identities extender plugin is registered for storefront.
23-
*
24-
* @magentoAppArea frontend
25-
* @return void
26-
*/
27-
public function testIdentitiesExtenderIsRegistered(): void
28-
{
29-
$pluginInfo = Bootstrap::getObjectManager()->get(PluginList::class)
30-
->get(\Magento\Catalog\Model\Product::class, []);
31-
$this->assertSame(ProductIdentitiesExtender::class, $pluginInfo['product_identities_extender']['instance']);
32-
}
33-
34-
/**
35-
* Check plugin will add children ids to configurable product identities on storefront.
22+
* Check that no children identities are added to the parent product in frontend area
3623
*
3724
* @magentoDataFixture Magento/ConfigurableProduct/_files/product_configurable.php
3825
* @magentoAppArea frontend
@@ -42,20 +29,16 @@ public function testGetIdentitiesForConfigurableProductOnStorefront(): void
4229
{
4330
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
4431
$configurableProduct = $productRepository->get('configurable');
45-
$simpleProduct1 = $productRepository->get('simple_10');
46-
$simpleProduct2 = $productRepository->get('simple_20');
4732
$expectedIdentities = [
4833
'cat_p_' . $configurableProduct->getId(),
49-
'cat_p',
50-
'cat_p_' . $simpleProduct1->getId(),
51-
'cat_p_' . $simpleProduct2->getId(),
34+
'cat_p'
5235

5336
];
5437
$this->assertEquals($expectedIdentities, $configurableProduct->getIdentities());
5538
}
5639

5740
/**
58-
* Check plugin won't add children ids to configurable product identities in admin area.
41+
* Check that no children identities are added to the parent product in frontend area
5942
*
6043
* @magentoDataFixture Magento/ConfigurableProduct/_files/product_configurable.php
6144
* @magentoAppArea adminhtml

0 commit comments

Comments
 (0)