mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
|
/**
|
|
* Always load the controller file for CodeCoverage
|
|
*/
|
|
require_once __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Controller/My/Controller.php';
|
|
|
|
use Silex\WebTestCase;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
/**
|
|
*
|
|
* This class is a BoilerPlate for a Controller Test
|
|
*
|
|
* - You should extends PhraseanetWebTestCaseAuthenticatedAbstract if the
|
|
* controller required authentication
|
|
*
|
|
* - The Class Name should end with "Test" to be detected by
|
|
*
|
|
*/
|
|
class BoilerPlate extends \PhraseanetWebTestCaseAbstract
|
|
{
|
|
/**
|
|
* As controllers use WebTestCase, it requires a client
|
|
*/
|
|
protected $client;
|
|
|
|
/**
|
|
* The application loader
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
return require __DIR__ . '/../../../../Path/To/Application.php';
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->client = $this->createClient();
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
parent::tearDown();
|
|
}
|
|
|
|
/**
|
|
* Default route test
|
|
*/
|
|
public function testRouteSlash()
|
|
{
|
|
$this->markTestIncomplete(
|
|
'This test has not been implemented yet.'
|
|
);
|
|
}
|
|
}
|