Skip to content

Commit 3599386

Browse files
MAGETWO-69347: Integration plan L4 random fail
1 parent f797367 commit 3599386

File tree

1 file changed

+19
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Sitemap/Model/ResourceModel/Catalog

1 file changed

+19
-1
lines changed

dev/tests/integration/testsuite/Magento/Sitemap/Model/ResourceModel/Catalog/ProductTest.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,33 @@
55
*/
66
namespace Magento\Sitemap\Model\ResourceModel\Catalog;
77

8+
use Magento\Indexer\Model\Indexer;
9+
use Magento\TestFramework\Helper\Bootstrap;
10+
811
/**
912
* Test class for \Magento\Sitemap\Model\ResourceModel\Catalog\Product.
1013
* - test products collection generation for sitemap
1114
*
12-
* @magentoDataFixtureBeforeTransaction Magento/CatalogSearch/_files/full_reindex.php
1315
* @magentoDataFixture Magento/Sitemap/_files/sitemap_products.php
1416
*/
1517
class ProductTest extends \PHPUnit_Framework_TestCase
1618
{
19+
/**
20+
* @var Indexer
21+
*/
22+
private $indexer;
23+
24+
/**
25+
* @inheritdoc
26+
*/
27+
protected function setUp()
28+
{
29+
/** @var Indexer indexer */
30+
$this->indexer = Bootstrap::getObjectManager()->create(Indexer::class);
31+
$this->indexer->load('catalogsearch_fulltext');
32+
$this->indexer->reindexAll();
33+
}
34+
1735
/**
1836
* Test getCollection None images
1937
* 1) Check that image attributes were not loaded

0 commit comments

Comments
 (0)