forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
h.matsuo
committed
Apr 9, 2021
1 parent
11f2969
commit b309fa6
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of EC-CUBE | ||
* | ||
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved. | ||
* | ||
* http://www.ec-cube.co.jp/ | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Eccube\Tests\Web; | ||
|
||
class SitemapControllerTest extends AbstractWebTestCase | ||
{ | ||
public function testIndex() | ||
{ | ||
$this->client->request('GET', $this->generateUrl('sitemap_xml')); | ||
$this->assertTrue($this->client->getResponse()->isSuccessful()); | ||
} | ||
|
||
public function testProduct() | ||
{ | ||
$this->client->request('GET', $this->generateUrl('sitemap_product_xml', ['page' => 1])); | ||
$this->assertTrue($this->client->getResponse()->isSuccessful()); | ||
} | ||
|
||
public function testCategory() | ||
{ | ||
$this->client->request('GET', $this->generateUrl('sitemap_category_xml')); | ||
$this->assertTrue($this->client->getResponse()->isSuccessful()); | ||
} | ||
|
||
public function testPage() | ||
{ | ||
$this->client->request('GET', $this->generateUrl('sitemap_page_xml')); | ||
$this->assertTrue($this->client->getResponse()->isSuccessful()); | ||
} | ||
} |