Skip to content

Commit 700dc99

Browse files
committed
MC-35013: SKU search in Advanced Search page doesn't work
1 parent 443a589 commit 700dc99

File tree

1 file changed

+1
-36
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogSearch/Controller/Advanced

1 file changed

+1
-36
lines changed

dev/tests/integration/testsuite/Magento/CatalogSearch/Controller/Advanced/ResultTest.php

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -70,42 +70,7 @@ public function testExecute(array $searchParams): void
7070
/**
7171
* Advanced search test by difference product attributes.
7272
*
73-
* @magentoConfigFixture default/catalog/search/engine elasticsearch6
74-
* @magentoAppArea frontend
75-
* @magentoDataFixture Magento/CatalogSearch/_files/product_for_search_with_hyphen_in_sku.php
76-
* @magentoDataFixture Magento/CatalogSearch/_files/full_reindex.php
77-
*
78-
* @return void
79-
*/
80-
public function testExecuteSkuWithHyphen(): void
81-
{
82-
$this->getRequest()->setQuery(
83-
$this->_objectManager->create(
84-
Parameters::class,
85-
[
86-
'values' => [
87-
'name' => '',
88-
'sku' => '24-mb01',
89-
'description' => '',
90-
'short_description' => '',
91-
'price' => [
92-
'from' => '',
93-
'to' => '',
94-
],
95-
'test_searchable_attribute' => '',
96-
]
97-
]
98-
)
99-
);
100-
$this->dispatch('catalogsearch/advanced/result');
101-
$responseBody = $this->getResponse()->getBody();
102-
$this->assertContains('Simple product name', $responseBody);
103-
}
104-
105-
/**
106-
* Advanced search test by difference product attributes.
107-
*
108-
* @magentoConfigFixture default/catalog/search/engine elasticsearch6
73+
* @magentoConfigFixture default/catalog/search/engine elasticsearch7
10974
* @magentoAppArea frontend
11075
* @magentoDataFixture Magento/CatalogSearch/_files/product_for_search_with_hyphen_in_sku.php
11176
* @magentoDataFixture Magento/CatalogSearch/_files/full_reindex.php

0 commit comments

Comments
 (0)