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

24 lines
670 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Admin;
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
{
protected $client;
/**
* Default route test
*/
public function testRouteSlash()
{
$auth = new \Session_Authentication_None(self::$DI['user']);
self::$DI['app']['authentication']->openAccount($auth);
self::$DI['client']->request('GET', '/admin/', array('section' => 'base:featured'));
$this->assertTrue(self::$DI['client']->getResponse()->isOk());
self::$DI['client']->request('GET', '/admin/');
$this->assertTrue(self::$DI['client']->getResponse()->isOk());
}
}