Skip to content

Commit bf19949

Browse files
committed
ACPT-1451: Fix for CE functional tests failures
- fix for static tests
1 parent 72b95c2 commit bf19949

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public function __construct(
8686
parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
8787
$this->_date = $date;
8888
$this->serializer = $serializer ?: \Magento\Framework\App\ObjectManager::getInstance()->get(Json::class);
89+
$metadataPool = $metadataPool ?:
90+
\Magento\Framework\App\ObjectManager::getInstance()->get(MetadataPool::class);
8991
$this->_associatedEntitiesMap = $this->getAssociatedEntitiesMap();
9092
$this->_setIdFieldName($metadataPool->getMetadata(RuleInterface::class)->getLinkField());
9193
}

0 commit comments

Comments
 (0)