Skip to content

Commit f1176b2

Browse files
committed
Fix Integration Test
1 parent ac82764 commit f1176b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/Model/Indexer/Category/Product/Plugin/TableResolver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public function afterGetTableName(
6464
string $result,
6565
$modelEntity
6666
) {
67-
$areaCode = $this->state->getAreaCode();
67+
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
68+
$state = $objectManager->get('Magento\Framework\App\State');
69+
$areaCode = $state->getAreaCode();
6870

6971
if (!is_array($modelEntity) &&
7072
$modelEntity === AbstractAction::MAIN_INDEX_TABLE &&

0 commit comments

Comments
 (0)