File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Product/Flat/Action Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 29
29
class FullTest extends TestCase
30
30
{
31
31
/** @var State */
32
- protected $ state ;
32
+ private $ state ;
33
33
34
34
/** @var Processor */
35
- protected $ processor ;
35
+ private $ processor ;
36
36
37
37
/** @var ObjectManagerInterface */
38
38
private $ objectManager ;
@@ -46,6 +46,9 @@ class FullTest extends TestCase
46
46
/** @var ProductRepositoryInterface */
47
47
private $ productRepository ;
48
48
49
+ /** @var Full */
50
+ private $ action ;
51
+
49
52
/**
50
53
* @inheritdoc
51
54
*/
@@ -75,6 +78,7 @@ protected function setUp(): void
75
78
$ this ->flatResource = $ this ->objectManager ->get (FlatResource::class);
76
79
$ this ->optionManagement = $ this ->objectManager ->get (AttributeOptionManagementInterface::class);
77
80
$ this ->productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
81
+ $ this ->action = $ this ->objectManager ->get (Full::class);
78
82
}
79
83
80
84
/**
@@ -172,7 +176,7 @@ public function testCheckDropdownAttributeInFlat(): void
172
176
$ options = $ this ->optionManagement ->getItems ($ this ->flatResource ->getTypeId (), $ attributeCode );
173
177
$ attributeValue = $ options [1 ]->getValue ();
174
178
$ this ->updateProduct ('simple2 ' , $ attributeCode , $ attributeValue );
175
- $ this ->processor -> reindexAll ();
179
+ $ this ->action -> execute ();
176
180
$ this ->assertFlatColumnValue ($ attributeCode , $ attributeValue );
177
181
}
178
182
You can’t perform that action at this time.
0 commit comments