diff --git a/Test/Unit/Aggregator/Shipment/ShipmentCountAggregatorTest.php b/Test/Unit/Aggregator/Shipment/ShipmentCountAggregatorTest.php index a7be7cb..c37b31a 100644 --- a/Test/Unit/Aggregator/Shipment/ShipmentCountAggregatorTest.php +++ b/Test/Unit/Aggregator/Shipment/ShipmentCountAggregatorTest.php @@ -78,7 +78,6 @@ private function getSelectMock(): MockObject 'ss.store_id = s.store_id', ['code'] ] - )->willReturn($select); $select->expects($this->once())->method('reset')->with(Select::COLUMNS)->willReturn($select); $select->expects($this->once())->method('group')->with(['s.code', 'iss.source_code']); diff --git a/src/Aggregator/Category/CategoryCountAggregator.php b/src/Aggregator/Category/CategoryCountAggregator.php index ac9fe8b..d353c77 100644 --- a/src/Aggregator/Category/CategoryCountAggregator.php +++ b/src/Aggregator/Category/CategoryCountAggregator.php @@ -137,9 +137,9 @@ private function getSelect(AdapterInterface $connection): Select ['s' => $connection->getTableName('store')], 'sg.group_id = s.group_id' )->joinInner( - ['cce1' => $connection->getTableName('catalog_category_entity')], - 'sg.root_category_id = cce1.entity_id' - )->joinInner( + ['cce1' => $connection->getTableName('catalog_category_entity')], + 'sg.root_category_id = cce1.entity_id' + )->joinInner( ['cce2' => $connection->getTableName('catalog_category_entity')], "cce2.path like CONCAT(cce1.path, '%')" )->joinLeft( diff --git a/src/Aggregator/Shipment/ShipmentCountAggregator.php b/src/Aggregator/Shipment/ShipmentCountAggregator.php index bf13024..487251b 100644 --- a/src/Aggregator/Shipment/ShipmentCountAggregator.php +++ b/src/Aggregator/Shipment/ShipmentCountAggregator.php @@ -72,10 +72,10 @@ private function getSelect(AdapterInterface $connection): Select 'ss.entity_id = iss.shipment_id', ['source_code'] )->joinInner( - ['s' => $connection->getTableName('store')], - 'ss.store_id = s.store_id', - ['code'] - )->reset(Select::COLUMNS) + ['s' => $connection->getTableName('store')], + 'ss.store_id = s.store_id', + ['code'] + )->reset(Select::COLUMNS) ->columns( [ 'SHIPMENT_COUNT' => 'COUNT(ss.entity_id)',