Files
Phraseanet/tests/Alchemy/Phrasea/Controller/Prod/RootTest.php
Romain Neutron a83ec5c055 fix tests
2012-10-04 15:43:35 +02:00

25 lines
731 B
PHP

<?php
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
class ControllerRootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
{
protected $client;
/**
* Default route test
*/
public function testRouteSlash()
{
$auth = new Session_Authentication_None(self::$DI['user']);
self::$DI['app']->openAccount($auth);
$crawler = self::$DI['client']->request('GET', '/prod/');
$response = self::$DI['client']->getResponse();
/* @var $response \Symfony\Component\HttpFoundation\Response */
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals('UTF-8', $response->getCharset());
}
}