Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Admin/RootTest.php
2013-12-10 01:29:02 +01:00

23 lines
571 B
PHP

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