Skip to content

Commit 1658f2c

Browse files
committed
MC-21456: Storefront: Product view in a category
1 parent aee5a50 commit 1658f2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListProduct/ProductInCategoriesViewTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ public function testNonAnchorCategoryProductVisibility(): void
189189
{
190190
$this->updateCategoryIsAnchor(400, false);
191191
$this->assignProductCategories(['simple2'], [402]);
192-
$parentCategoryCollection = $this->getCategoryProductCollection(400);
193-
$childCategoryCollection = $this->getCategoryProductCollection(402, true);
192+
$parentCategoryCollectionSize = $this->getCategoryProductCollection(400)->getSize();
193+
$childCategoryCollectionSize = $this->getCategoryProductCollection(402, true)->getSize();
194194

195-
$this->assertCount(0, $parentCategoryCollection);
196-
$this->assertCount(1, $childCategoryCollection);
195+
$this->assertEquals(0, $parentCategoryCollectionSize);
196+
$this->assertEquals(1, $childCategoryCollectionSize);
197197
}
198198

199199
/**

0 commit comments

Comments
 (0)