mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
33 lines
723 B
PHP
33 lines
723 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
|
use Symfony\Component\HttpKernel\Client;
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
* @group authenticated
|
|
* @group web
|
|
*/
|
|
class RootTest extends \PhraseanetAuthenticatedWebTestCase
|
|
{
|
|
protected $client;
|
|
|
|
/**
|
|
* Default route test
|
|
*/
|
|
public function testRouteSlash()
|
|
{
|
|
$this->authenticate(self::$DI['app']);
|
|
|
|
/** @var Client $client */
|
|
$client = self::$DI['client'];
|
|
|
|
$client->request('GET', '/admin/', ['section' => 'base:featured']);
|
|
$this->assertTrue($client->getResponse()->isOk());
|
|
|
|
$client->request('GET', '/admin/');
|
|
$this->assertTrue($client->getResponse()->isOk());
|
|
}
|
|
}
|