mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
25 lines
707 B
PHP
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());
|
|
}
|
|
}
|