Skip to content

Commit 8f5b2c7

Browse files
committed
fixed #25761 - update test case and one comment
1 parent f165a53 commit 8f5b2c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Sitemap/Model/ItemProvider/StoreUrl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class StoreUrl implements ItemProviderInterface
2525
private $configReader;
2626

2727
/**
28-
* CategorySitemapItemResolver constructor.
28+
* StoreUrlSitemapItemResolver constructor.
2929
*
3030
* @param ConfigReaderInterface $configReader
3131
* @param SitemapItemInterfaceFactory $itemFactory

app/code/Magento/Sitemap/Test/Unit/Model/ItemProvider/StoreUrlTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public function testGetItems()
2525
$items = $resolver->getItems(1);
2626

2727
$this->assertTrue(count($items) == 1);
28-
foreach ($items as $index => $item) {
29-
$this->assertSame('daily', $items[$index]->getChangeFrequency());
30-
$this->assertSame('1.0', $items[$index]->getPriority());
28+
foreach ($items as $item) {
29+
$this->assertSame('daily', $item->getChangeFrequency());
30+
$this->assertSame('1.0', $item->getPriority());
3131
}
3232
}
3333

0 commit comments

Comments
 (0)