mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Use composer as application autoloader
This commit is contained in:
21
tests/classes/PhraseanetPHPUnitAuthenticatedAbstract.php
Normal file
21
tests/classes/PhraseanetPHPUnitAuthenticatedAbstract.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpKernel\Client;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
abstract class PhraseanetPHPUnitAuthenticatedAbstract extends PhraseanetPHPUnitAbstract
|
||||
{
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->authenticate(self::$DI['app']);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->logout(self::$DI['app']);
|
||||
parent::tearDown();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user