Skip to content

Commit

Permalink
Merge pull request #5020 from magento-arcticfoxes/MC-22958
Browse files Browse the repository at this point in the history
[arcticfoxes] MC-22958: [Integration] Failing Tests: Magento.CatalogSearch and Magento.CatalogPermissions
  • Loading branch information
rganin authored Nov 14, 2019
2 parents 8f73566 + be7125c commit 9fb7790
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
*/
namespace Magento\CatalogSearch\Model\ResourceModel\Advanced;

use Magento\CatalogSearch\Model\Indexer\Fulltext;
use Magento\Framework\Indexer\IndexerRegistry;
use Magento\TestFramework\Helper\Bootstrap;

/**
* Test class for \Magento\CatalogSearch\Model\ResourceModel\Advanced\Collection.
* @magentoDbIsolation disabled
Expand All @@ -21,6 +25,9 @@ protected function setUp()
$advanced = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
->create(\Magento\CatalogSearch\Model\Search\ItemCollectionProvider::class);
$this->advancedCollection = $advanced->getCollection();
$indexerRegistry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
->create(IndexerRegistry::class);
$indexerRegistry->get(Fulltext::INDEXER_ID)->reindexAll();
}

/**
Expand Down

0 comments on commit 9fb7790

Please sign in to comment.