Skip to content

Commit

Permalink
Fix integration tests (most likely caused by incorrect merge conflict…
Browse files Browse the repository at this point in the history
… resolving):

error msg:
1) Magento\Catalog\Block\Adminhtml\Category\Checkboxes\TreeTest::testGetTreeJson
Error: Call to a member function getConnectionName() on null

/var/www/html/lib/internal/Magento/Framework/App/ResourceConnection.php:110
/var/www/html/app/code/Magento/Catalog/Model/ResourceModel/Category/Collection.php:570
...

ref: https://github.com/vpodorozh/mageos-magento2/actions/runs/7472531139/job/20334972566#step:6:39
  • Loading branch information
vpodorozh committed Jan 10, 2024
1 parent 5b877e0 commit a4cadb8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,7 @@ private function getProductsCountFromCategoryTable(Category $item, string $websi
*/
private function getProductsCountQuery(array $categoryIds, $addVisibilityFilter = true): Select
{
$connections = $this->_resource->getConnection();
$categoryTable = $connections->getTableName('catalog_category_product_index');
$categoryTable = $this->_resource->getTableName('catalog_category_product_index');
$select = $this->_conn->select()
->from(
['cat_index' => $categoryTable],
Expand Down

0 comments on commit a4cadb8

Please sign in to comment.