Files
Phraseanet/lib/unitTest/Alchemy/Phrasea/Controller/Admin/RootTest.php
Romain Neutron b299e7d042 Fix build
2012-01-26 19:12:51 +01:00

55 lines
1.2 KiB
PHP

<?php
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
/**
* Test class for Subdefs.
* Generated by PHPUnit on 2012-01-11 at 18:25:04.
*/
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
{
/**
* As controllers use WebTestCase, it requires a client
*/
protected $client;
/**
* If the controller tests require some records, specify it her
*
* For example, this will loacd 2 records
* (self::$record_1 and self::$record_2) :
*
* $need_records = 2;
*
*/
protected static $need_records = false;
/**
* The application loader
*/
public function createApplication()
{
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Admin.php';
}
public function setUp()
{
parent::setUp();
$this->client = $this->createClient();
}
/**
* Default route test
*/
public function testRouteSlash()
{
$this->client->request('GET', '/', array('section' => 'base:featured'));
$this->assertTrue($this->client->getResponse()->isOk());
$this->client->request('GET', '/');
$this->assertTrue($this->client->getResponse()->isOk());
}
}