Skip to content

Commit 15ef5f4

Browse files
MC-19450: Adapt integration tests to elasticsearch
1 parent 05f9d09 commit 15ef5f4

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/TypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function setUp()
5252
* @covers \Magento\Bundle\Model\Product\Type::getSearchableData
5353
* @magentoDbIsolation disabled
5454
*/
55-
public function testPrepareProductIndexForBundleProduct()
55+
public function testGetSearchableData()
5656
{
5757
$productRepository = $this->objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
5858
/** @var \Magento\Catalog\Model\Product $bundleProduct */

dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Product/Eav/Action/FullTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ protected function setUp()
4242
* @magentoDbIsolation disabled
4343
* @magentoAppIsolation enabled
4444
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
45-
* @magentoConfigFixture default/catalog/search/engine mysql
4645
*/
4746
public function testReindexAll()
4847
{

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/UrlTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public function testGetUrlInStore()
4444

4545
/**
4646
* @magentoDataFixture Magento/Store/_files/second_store.php
47-
* @magentoConfigFixture default/catalog/search/engine mysql
4847
* @magentoConfigFixture default_store web/unsecure/base_url http://sample.com/
4948
* @magentoConfigFixture default_store web/unsecure/base_link_url http://sample.com/
5049
* @magentoConfigFixture fixturestore_store web/unsecure/base_url http://sample-second.com/
5150
* @magentoConfigFixture fixturestore_store web/unsecure/base_link_url http://sample-second.com/
5251
* @magentoDataFixture Magento/Catalog/_files/product_simple_multistore.php
52+
* @magentoDbIsolation disabled
5353
* @dataProvider getUrlsWithSecondStoreProvider
5454
* @magentoAppArea adminhtml
5555
*/
@@ -83,9 +83,6 @@ public function getUrlsWithSecondStoreProvider()
8383
];
8484
}
8585

86-
/**
87-
* @magentoConfigFixture default/catalog/search/engine mysql
88-
*/
8986
public function testGetProductUrl()
9087
{
9188
$repository = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
@@ -121,7 +118,6 @@ public function testGetUrlPath()
121118

122119
/**
123120
* @magentoAppArea frontend
124-
* @magentoConfigFixture default/catalog/search/engine mysql
125121
*/
126122
public function testGetUrl()
127123
{

dev/tests/integration/testsuite/Magento/Elasticsearch/Controller/Adminhtml/Category/SaveTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Catalog\Api\ProductRepositoryInterface;
1414
use Magento\Catalog\Model\Indexer\Category\Product as CategoryIndexer;
1515
use Magento\CatalogSearch\Model\Indexer\Fulltext as FulltextIndexer;
16-
use Magento\Elasticsearch\Model\Config;
1716
use Magento\Framework\Api\SearchCriteriaBuilder;
1817
use Magento\Framework\Indexer\IndexerInterface;
1918
use Magento\Framework\Indexer\IndexerRegistry;
@@ -44,7 +43,6 @@ protected function setUp()
4443
*/
4544
protected function tearDown()
4645
{
47-
$this->_objectManager->removeSharedInstance(Config::class);
4846
$this->changeIndexerSchedule(FulltextIndexer::INDEXER_ID, $this->indexerSchedule[FulltextIndexer::INDEXER_ID]);
4947
$this->changeIndexerSchedule(CategoryIndexer::INDEXER_ID, $this->indexerSchedule[CategoryIndexer::INDEXER_ID]);
5048

0 commit comments

Comments
 (0)