File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Layer/Category Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313use PHPUnit \Framework \TestCase ;
1414
1515/**
16- * Test cases item collection provider.
16+ * Tests for category collection provider.
1717 *
1818 * @see \Magento\Catalog\Model\Layer\Category\ItemCollectionProvider
1919 * @magentoAppArea frontend
@@ -51,8 +51,8 @@ protected function setUp(): void
5151 public function testGetCollection (): void
5252 {
5353 $ category = $ this ->categoryRepository ->get (333 );
54- $ collectionProduct = $ this ->itemCollectionProvider ->getCollection ($ category );
55- $ this ->assertEquals ( ' simple333 ' , $ collectionProduct -> getFirstItem ()-> getSku () );
56- $ this ->assertCount ( 1 , $ collectionProduct -> getItems ());
54+ $ categoryProductsCollection = $ this ->itemCollectionProvider ->getCollection ($ category );
55+ $ this ->assertCount ( 1 , $ categoryProductsCollection );
56+ $ this ->assertEquals ( ' simple333 ' , $ categoryProductsCollection -> getFirstItem ()-> getSku ());
5757 }
5858}
You can’t perform that action at this time.
0 commit comments