Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Client/RootTest.php
Nicolas Le Goff a3f1eddefb Fix tests
2015-02-06 19:30:26 +01:00

20 lines
505 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Client;
class RootTest extends \PhraseanetAuthenticatedWebTestCase
{
protected $client;
public function testGetClient()
{
if (!extension_loaded('phrasea2')) {
$this->markTestSkipped('Phrasea2 is required for this test');
}
$this->authenticate(self::$DI['app']);
self::$DI['client']->request("GET", "/client/");
$this->assertTrue(self::$DI['client']->getResponse()->isRedirect());
}
}