Skip to content

Commit

Permalink
webテストの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
h.matsuo committed Apr 9, 2021
1 parent 11f2969 commit b309fa6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/Eccube/Tests/Web/SitemapControllerTest.php
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());
}
}

0 comments on commit b309fa6

Please sign in to comment.