Skip to content

Commit 7b388de

Browse files
committed
Merge remote-tracking branch 'origin/MC-21860' into 2.3-develop-pr38
2 parents ad9aa6e + 61303b6 commit 7b388de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dev/tests/integration/testsuite/Magento/Sitemap/Model/SitemapTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use PHPUnit\Framework\TestCase;
1919

2020
/**
21-
* Test for Sitemap
21+
* Tests \Magento\Sitemap\Model\Sitemap functionality.
2222
*/
2323
class SitemapTest extends TestCase
2424
{
@@ -54,8 +54,6 @@ protected function setUp()
5454
*/
5555
public function testGetSitemapUrlFromParentRootDirectoryPath(): void
5656
{
57-
$baseUrl = 'http://localhost/';
58-
5957
$rootDir = $this->filesystem->getDirectoryRead(DirectoryList::ROOT)
6058
->getAbsolutePath();
6159
$requestPath = dirname($rootDir);
@@ -67,6 +65,6 @@ public function testGetSitemapUrlFromParentRootDirectoryPath(): void
6765

6866
$sitemapUrl = $this->model->getSitemapUrl('/', 'sitemap.xml');
6967

70-
$this->assertEquals($baseUrl.'sitemap.xml', $sitemapUrl);
68+
$this->assertEquals('http://localhost/sitemap.xml', $sitemapUrl);
7169
}
7270
}

0 commit comments

Comments
 (0)