mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
34 lines
859 B
PHP
34 lines
859 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
|
|
|
class ControllerRootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|
{
|
|
protected $client;
|
|
|
|
public function createApplication()
|
|
{
|
|
return require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/Prod.php';
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->client = $this->createClient();
|
|
}
|
|
|
|
/**
|
|
* Default route test
|
|
*/
|
|
public function testRouteSlash()
|
|
{
|
|
$crawler = $this->client->request('GET', '/');
|
|
|
|
|
|
$response = $this->client->getResponse();
|
|
/* @var $response \Symfony\Component\HttpFoundation\Response */
|
|
$this->assertEquals(200, $response->getStatusCode());
|
|
$this->assertEquals('UTF-8', $response->getCharset());
|
|
}
|
|
}
|