mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
25 lines
567 B
PHP
25 lines
567 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
use Silex\WebTestCase;
|
|
use Symfony\Component\HttpKernel\Client;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
abstract class PhraseanetPHPUnitAuthenticatedAbstract extends PhraseanetPHPUnitAbstract
|
|
{
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$auth = new Session_Authentication_None(self::$user);
|
|
self::$application->openAccount($auth);
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
self::$application->closeAccount();
|
|
parent::tearDown();
|
|
}
|
|
}
|