File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
dev/tests/integration/testsuite/Magento/Sitemap/Model/ResourceModel/Catalog Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Sitemap \Model \ResourceModel \Catalog ;
7
7
8
+ use Magento \Indexer \Model \Indexer ;
9
+ use Magento \TestFramework \Helper \Bootstrap ;
10
+
8
11
/**
9
12
* Test class for \Magento\Sitemap\Model\ResourceModel\Catalog\Product.
10
13
* - test products collection generation for sitemap
11
14
*
12
- * @magentoDataFixtureBeforeTransaction Magento/CatalogSearch/_files/full_reindex.php
13
15
* @magentoDataFixture Magento/Sitemap/_files/sitemap_products.php
14
16
*/
15
17
class ProductTest extends \PHPUnit_Framework_TestCase
16
18
{
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
+
17
35
/**
18
36
* Test getCollection None images
19
37
* 1) Check that image attributes were not loaded
You can’t perform that action at this time.
0 commit comments