File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
dev/tests/integration/testsuite/Magento/Sitemap/Model Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 18
18
use PHPUnit \Framework \TestCase ;
19
19
20
20
/**
21
- * Test for Sitemap
21
+ * Tests \Magento\ Sitemap\Model\Sitemap functionality.
22
22
*/
23
23
class SitemapTest extends TestCase
24
24
{
@@ -54,8 +54,6 @@ protected function setUp()
54
54
*/
55
55
public function testGetSitemapUrlFromParentRootDirectoryPath (): void
56
56
{
57
- $ baseUrl = 'http://localhost/ ' ;
58
-
59
57
$ rootDir = $ this ->filesystem ->getDirectoryRead (DirectoryList::ROOT )
60
58
->getAbsolutePath ();
61
59
$ requestPath = dirname ($ rootDir );
@@ -67,6 +65,6 @@ public function testGetSitemapUrlFromParentRootDirectoryPath(): void
67
65
68
66
$ sitemapUrl = $ this ->model ->getSitemapUrl ('/ ' , 'sitemap.xml ' );
69
67
70
- $ this ->assertEquals ($ baseUrl . ' sitemap.xml ' , $ sitemapUrl );
68
+ $ this ->assertEquals (' http://localhost/ sitemap.xml ' , $ sitemapUrl );
71
69
}
72
70
}
You can’t perform that action at this time.
0 commit comments