Add some groups legacy, functional, web, authenticated

This commit is contained in:
Benoît Burnichon
2015-06-15 19:30:51 +02:00
parent 6fdecbe6cb
commit b272ce5aac
492 changed files with 1982 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
use Alchemy\Phrasea\CLI;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider
*/
class CLISDriversServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider
*/
class ComposerSetupServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
/**
* @group functional
* @group legacy
*/
class DoctrineMigrationServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\CLIProvider\LessBuilderServiceProvider
*/
class LessBuilderServiceProviderTest extends ServiceProviderTestCase

View File

@@ -6,6 +6,8 @@ use Alchemy\Phrasea\Core\CLIProvider\PluginServiceProvider;
use Symfony\Component\Process\ExecutableFinder;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\CLIProvider\PluginServiceProvider
*/
class PluginServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
/**
* @group functional
* @group legacy
*/
class SignalHandlerServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\CLIProvider\TaskManagerServiceProvider
*/
class TaskManagerServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\CLIProvider\TranslationExtractorServiceProvider
*/
class TranslationExtractorServiceProviderTest extends ServiceProviderTestCase

View File

@@ -7,6 +7,10 @@ use Alchemy\Phrasea\Core\Configuration\AccessRestriction;
use Alchemy\Phrasea\Core\Configuration\PropertyAccess;
use Alchemy\Tests\Phrasea\MockArrayConf;
/**
* @group functional
* @group legacy
*/
class AccessRestrictionTest extends \PhraseanetTestCase
{
/**

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Core\Configuration;
use Alchemy\Phrasea\Core\Configuration\Compiler;
/**
* @group functional
* @group legacy
*/
class CompilerTest extends \PhraseanetTestCase
{
/**

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Core\Configuration\Configuration;
use Alchemy\Phrasea\Core\Configuration\Compiler;
use Symfony\Component\Yaml\Yaml;
/**
* @group functional
* @group legacy
*/
class ConfigurationTest extends ConfigurationTestCase
{
protected function provideConfiguration($confFile, $compiledFile = null, Compiler $compiler = null, Yaml $yaml = null, $autoreload = false)

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Core\Configuration;
use Alchemy\Phrasea\Model\Entities\User;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @group functional
* @group legacy
*/
class DisplaySettingServiceTest extends \PhraseanetTestCase
{
private static $userSettings;

View File

@@ -7,6 +7,10 @@ use Alchemy\Phrasea\Core\Configuration\Configuration;
use Alchemy\Phrasea\Core\Configuration\HostConfiguration;
use Symfony\Component\Yaml\Yaml;
/**
* @group functional
* @group legacy
*/
class HostConfigurationTest extends ConfigurationTestCase
{
protected function provideConfiguration($confFile, $compiledFile = null, Compiler $compiler = null, Yaml $yaml = null, $autoreload = false)

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Core\Configuration;
use Alchemy\Tests\Phrasea\MockArrayConf;
use Alchemy\Phrasea\Core\Configuration\PropertyAccess;
/**
* @group functional
* @group legacy
*/
class PropertyAccessTest extends \PhraseanetTestCase
{
/**

View File

@@ -7,6 +7,10 @@ use Alchemy\Phrasea\Model\Entities\Registration;
use Alchemy\Phrasea\Model\Entities\User;
use Alchemy\Phrasea\Core\Configuration\RegistrationManager;
/**
* @group functional
* @group legacy
*/
class RegistrationManagerTest extends \PhraseanetTestCase
{
/**

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Core\Configuration;
use Alchemy\Phrasea\Core\Configuration\RegistryManipulator;
/**
* @group functional
* @group legacy
*/
class RegistryManipulatorTest extends \PhraseanetTestCase
{
/** @var RegistryManipulator */

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Core\Connection;
use Alchemy\Phrasea\Core\Connection\ConnectionProvider;
/**
* @group functional
* @group legacy
*/
class ConnectionPoolManager extends \PhraseanetTestCase
{
public function testMysqlTimeoutIsHandled()

View File

@@ -11,6 +11,10 @@ use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
/**
* @group functional
* @group legacy
*/
class ApiExceptionHandlerSubscriberTest extends \PhraseanetTestCase
{
/**

View File

@@ -9,6 +9,10 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
use Alchemy\Phrasea\Core\PhraseaExceptionHandler;
use Alchemy\Tests\Tools\TranslatorMockTrait;
/**
* @group functional
* @group legacy
*/
class ApiOauth2ErrorsSubscriberTest extends \PhraseanetTestCase
{
use TranslatorMockTrait;

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Application;
use Symfony\Component\HttpKernel\Client;
use Alchemy\Phrasea\Core\Event\Subscriber\BridgeExceptionSubscriber;
/**
* @group functional
* @group legacy
*/
class BridgeExceptionSubscriberTest extends \PhraseanetTestCase
{
public function testErrorOnBridgeExceptions()

View File

@@ -11,6 +11,10 @@ use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Cookie;
/**
* @group functional
* @group legacy
*/
class CookiesDisablerSubscriberTest extends \PhraseanetTestCase
{
/**

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Core\Event\Subscriber\DebuggerSubscriber;
use Symfony\Component\HttpFoundation\Request;
/**
* @group functional
* @group legacy
*/
class DebuggerSubscriberTest extends \PhraseanetTestCase
{
public function tearDown()

View File

@@ -7,6 +7,10 @@ use Alchemy\Phrasea\Application;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Client;
/**
* @group functional
* @group legacy
*/
class FirewallSubscriberTest extends \PhraseanetTestCase
{
public function testRedirection()

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Core\Event\Subscriber\JsonRequestSubscriber;
use Symfony\Component\HttpKernel\Client;
/**
* @group functional
* @group legacy
*/
class JsonRequestSubscriberTest extends \PhraseanetTestCase
{
/**

View File

@@ -7,6 +7,10 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Core\Event\LogoutEvent;
use Alchemy\Phrasea\Core\PhraseaEvents;
/**
* @group functional
* @group legacy
*/
class LogoutSubscriberTest extends \PhraseanetTestCase
{
public function testThatSearchEngineCacheIsCleaned()

View File

@@ -10,6 +10,10 @@ use Alchemy\Phrasea\Core\Event\Subscriber\MaintenanceSubscriber;
use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* @group functional
* @group legacy
*/
class MaintenanceSubscriberTest extends \PhraseanetTestCase
{
public function tearDown()

View File

@@ -8,6 +8,10 @@ use Alchemy\Phrasea\Core\PhraseaExceptionHandler;
use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* @group functional
* @group legacy
*/
class PhraseaExceptionHandlerSubscriberTest extends \PhraseanetTestCase
{
public function testAResponseIsReturned()

View File

@@ -10,6 +10,10 @@ use Symfony\Component\BrowserKit\CookieJar;
use Symfony\Component\BrowserKit\Cookie as BrowserCookie;
use Symfony\Component\HttpFoundation\Request;
/**
* @group functional
* @group legacy
*/
class PhraseaLocaleSubscriberTest extends \PhraseanetTestCase
{
public function testBasic()

View File

@@ -7,6 +7,12 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Model\Entities\Session;
use Symfony\Component\HttpKernel\Client;
/**
* @group functional
* @group legacy
* @group authenticated
* @group web
*/
class SessionManagerSubscriberTest extends \PhraseanetAuthenticatedWebTestCase
{
public function testEndSession()

View File

@@ -7,6 +7,10 @@ use Silex\Application as SilexApp;
use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpFoundation\Request;
/**
* @group functional
* @group legacy
*/
class TrustedProxySubscriberTest extends \PhraseanetTestCase
{
private function getConfigurationMock()

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Core\Middleware;
use Alchemy\Phrasea\Core\Middleware\BasketMiddlewareProvider;
use Symfony\Component\HttpFoundation\Request;
/**
* @group functional
* @group legacy
*/
class BasketMiddlewareProviderTest extends MiddlewareProviderTestCase
{
public function provideDescription()

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Core\Middleware;
use Alchemy\Phrasea\Core\Middleware\TokenMiddlewareProvider;
use Symfony\Component\HttpFoundation\Request;
/**
* @group functional
* @group legacy
*/
class TokenMiddlewareProviderTest extends MiddlewareProviderTestCase
{
public function provideDescription()

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class ACLServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -8,6 +8,8 @@ use Alchemy\Phrasea\Core\Provider\AuthenticationManagerServiceProvider;
use Alchemy\Phrasea\Core\Provider\ConfigurationServiceProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\AuthenticationManagerServiceProvider
*/
class AuthenticationManagerServiceProviderTest extends ServiceProviderTestCase

View File

@@ -9,6 +9,8 @@ use Symfony\Component\Process\ExecutableFinder;
use XPDF\XPDFServiceProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\BorderManagerServiceProvider
*/
class BorderManagerServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\BrowserServiceProvider
*/
class BrowserServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class CacheConnectionServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\CacheServiceProvider
*/
class CacheServiceProviderTest extends ServiceProviderTestCase

View File

@@ -10,6 +10,8 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\KernelEvents;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\ConfigurationServiceProvider
*/
class ConfigurationServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\ConfigurationTesterServiceProvider
*/
class ConfigurationTesterServiceProviderTest extends ServiceProviderTestCase

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
use Alchemy\Phrasea\Application as PhraseaApplication;
use Silex\Application;
/**
* @group functional
* @group legacy
*/
class classContentNegotiationServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class ConvertersServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
use Alchemy\Phrasea\Core\Provider\FtpServiceProvider;
/**
* @group functional
* @group legacy
*/
class FTPServiceProviderTest extends \PhraseanetTestCase
{
public function testGetInstantiate()

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\FeedServiceProvider
*/
class FeedServiceProviderTest extends ServiceProviderTestCase

View File

@@ -6,6 +6,8 @@ use Alchemy\Phrasea\Core\Provider\ConfigurationServiceProvider;
use Alchemy\Phrasea\Core\Provider\FileServeServiceProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\FileServeServiceProvider
*/
class FileServeServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\JMSServiceProviderServiceProvider
*/
class JMSSerializerServiceProviderTest extends ServiceProviderTestCase

View File

@@ -7,6 +7,8 @@ use Alchemy\Phrasea\Core\Provider\ConfigurationServiceProvider;
use Alchemy\Phrasea\Core\Provider\LocaleServiceProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\LocaleServiceProvider
*/
class LocaleServiceProviderTest extends \PhraseanetTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class ManipulatorServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -5,6 +5,8 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
use Alchemy\Phrasea\Core\Provider\NotificationDelivererServiceProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\NotificationDelivererServiceProvider
*/
class NotificationDelivererServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\ORMServiceProvider
*/
class ORMServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\PhraseaVersionServiceProvider
*/
class PhraseaVersionServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class PhraseanetServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\PluginServiceProvider
*/
class PluginServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class RandomGeneratorServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -5,6 +5,8 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
use Alchemy\Phrasea\Core\Provider\RegistrationServiceProvider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\RegistrationServiceProvider
*/
class RegistrationServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class RepositoriesServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\SearchEngineServiceProvider
*/
class SearchEngineServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class SubdefServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
use Alchemy\Phrasea\Core\Provider\TasksServiceProvider;
use Alchemy\Tests\Tools\TranslatorMockTrait;
/**
* @group functional
* @group legacy
*/
class TasksServiceProviderTest extends ServiceProviderTestCase
{
use TranslatorMockTrait;

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\TemporaryFilesystemServiceProvider
*/
class TemporaryFilesystemServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\TokensServiceProvider
*/
class TokensServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\TranslatorServiceProvider
*/
class TranslationServiceProviderTest extends ServiceProviderTestCase

View File

@@ -3,6 +3,8 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
* @covers Alchemy\Phrasea\Core\Provider\UnicodeServiceProvider
*/
class UnicodeServiceProviderTest extends ServiceProviderTestCase

View File

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Core\Provider;
/**
* @group functional
* @group legacy
*/
class ZippyServiceProviderTest extends ServiceProviderTestCase
{
public function provideServiceDescription()