Sylius/tests/Controller/SitemapControllerApiTest.php
2016-04-18 14:02:57 +02:00

30 lines
736 B
PHP

<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\CoreBundle\Tests\Controller;
use Lakion\ApiTestCase\XmlApiTestCase;
/**
* @author Arkadiusz Krakowiak <arkadiusz.krakowiak@lakion.com>
*/
class SitemapControllerApiTest extends XmlApiTestCase
{
public function testShowActionResponse()
{
$this->loadFixturesFromFile('resources/product.yml');
$this->client->request('GET', '/sitemap.xml');
$response = $this->client->getResponse();
$this->assertResponse($response, 'sitemap/show_sitemap');
}
}