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 13
13
use PHPUnit \Framework \TestCase ;
14
14
15
15
/**
16
- * Test cases item collection provider.
16
+ * Tests for category collection provider.
17
17
*
18
18
* @see \Magento\Catalog\Model\Layer\Category\ItemCollectionProvider
19
19
* @magentoAppArea frontend
@@ -51,8 +51,8 @@ protected function setUp(): void
51
51
public function testGetCollection (): void
52
52
{
53
53
$ 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 ());
57
57
}
58
58
}
You can’t perform that action at this time.
0 commit comments