mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
24 lines
670 B
PHP
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());
|
|
}
|
|
}
|