File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListProduct Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,11 @@ public function testNonAnchorCategoryProductVisibility(): void
189
189
{
190
190
$ this ->updateCategoryIsAnchor (400 , false );
191
191
$ 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 ( );
194
194
195
- $ this ->assertCount (0 , $ parentCategoryCollection );
196
- $ this ->assertCount (1 , $ childCategoryCollection );
195
+ $ this ->assertEquals (0 , $ parentCategoryCollectionSize );
196
+ $ this ->assertEquals (1 , $ childCategoryCollectionSize );
197
197
}
198
198
199
199
/**
You can’t perform that action at this time.
0 commit comments