Skip to content

Commit 40ac15e

Browse files
author
Serhii Bohomaz
committed
MC-39629: Increase coverage of "Magento/Catalog/Model/Layer/Category/ItemCollectionProvider.php"
1 parent bc9cb5c commit 40ac15e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Layer/Category/ItemCollectionProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use 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
}

0 commit comments

Comments
 (0)