Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Prod/RootTest.php
2013-05-29 14:22:50 +02:00

25 lines
707 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerRootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
{
protected $client;
/**
* Default route test
*/
public function testRouteSlash()
{
$auth = new \Session_Authentication_None(self::$DI['user']);
self::$DI['app']['authentication']->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());
}
}