Skip to content

Commit bc14738

Browse files
committed
MC-39722: Create automated test for: "Dropdown attribute in flat product"
1 parent 85d1491 commit bc14738

File tree

1 file changed

+7
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Product/Flat/Action

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
class FullTest extends TestCase
3030
{
3131
/** @var State */
32-
protected $state;
32+
private $state;
3333

3434
/** @var Processor */
35-
protected $processor;
35+
private $processor;
3636

3737
/** @var ObjectManagerInterface */
3838
private $objectManager;
@@ -46,6 +46,9 @@ class FullTest extends TestCase
4646
/** @var ProductRepositoryInterface */
4747
private $productRepository;
4848

49+
/** @var Full */
50+
private $action;
51+
4952
/**
5053
* @inheritdoc
5154
*/
@@ -75,6 +78,7 @@ protected function setUp(): void
7578
$this->flatResource = $this->objectManager->get(FlatResource::class);
7679
$this->optionManagement = $this->objectManager->get(AttributeOptionManagementInterface::class);
7780
$this->productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
81+
$this->action = $this->objectManager->get(Full::class);
7882
}
7983

8084
/**
@@ -172,7 +176,7 @@ public function testCheckDropdownAttributeInFlat(): void
172176
$options = $this->optionManagement->getItems($this->flatResource->getTypeId(), $attributeCode);
173177
$attributeValue = $options[1]->getValue();
174178
$this->updateProduct('simple2', $attributeCode, $attributeValue);
175-
$this->processor->reindexAll();
179+
$this->action->execute();
176180
$this->assertFlatColumnValue($attributeCode, $attributeValue);
177181
}
178182

0 commit comments

Comments
 (0)