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

@@ -2,6 +2,10 @@
namespace Alchemy\Tests\Phrasea\Authentication;
/**
* @group functional
* @group legacy
*/
class ACLProviderTest extends \PhraseanetTestCase
{
public function testGetACL()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication;
use Alchemy\Phrasea\Authentication\AccountCreator;
/**
* @group functional
* @group legacy
*/
class AccountCreatorTest extends \PhraseanetTestCase
{
/**

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Authenticator;
use Alchemy\Phrasea\Exception\RuntimeException;
use Alchemy\Phrasea\Model\Entities\Session;
/**
* @group functional
* @group legacy
*/
class AuthenticatorTest extends \PhraseanetTestCase
{
/**

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication;
use Alchemy\Phrasea\Authentication\Context;
/**
* @group functional
* @group legacy
*/
class ContextTest extends \PhraseanetTestCase
{
public function testWithValidCOntext()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication;
use Alchemy\Phrasea\Authentication\Manager;
/**
* @group functional
* @group legacy
*/
class ManagerTest extends \PhraseanetTestCase
{
/**

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\PersistentCookie;
use Alchemy\Phrasea\Authentication\PersistentCookie\Manager;
use Alchemy\Phrasea\Model\Entities\Session;
/**
* @group functional
* @group legacy
*/
class ManagerTest extends \PhraseanetTestCase
{
/**

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\Phrasea;
use Alchemy\Phrasea\Authentication\Phrasea\FailureHandledNativeAuthentication;
/**
* @group functional
* @group legacy
*/
class FailureHandledNativeAuthenticationTest extends \PhraseanetTestCase
{
public function testGetUsrIdWhenSuccessful()

View File

@@ -7,6 +7,10 @@ use Alchemy\Phrasea\Model\Entities\AuthFailure;
use Gedmo\Timestampable\TimestampableListener;
use Symfony\Component\HttpFoundation\Request;
/**
* @group functional
* @group legacy
*/
class FailureManagerTest extends \PhraseanetTestCase
{
/**

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Phrasea\NativeAuthentication;
use Alchemy\Phrasea\Authentication\Exception\AccountLockedException;
use Alchemy\Phrasea\Model\Entities\User;
/**
* @group functional
* @group legacy
*/
class NativeAuthenticationTest extends \PhraseanetTestCase
{
public function testAuthenticationSpecialUser()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\Phrasea;
use Alchemy\Phrasea\Authentication\Phrasea\OldPasswordEncoder;
/**
* @group functional
* @group legacy
*/
class OldPasswordEncoderTest extends \PhraseanetTestCase
{
/**

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\Phrasea;
use Alchemy\Phrasea\Authentication\Phrasea\PasswordEncoder;
/**
* @group functional
* @group legacy
*/
class PasswordEncoderTest extends \PhraseanetTestCase
{
public function providePasswords()

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Provider\Facebook;
use Alchemy\Phrasea\Authentication\Provider\ProviderInterface;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class FacebookTest extends ProviderTestCase
{
public function testGetSetSession()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\Provider;
use Alchemy\Phrasea\Authentication\Provider\Factory;
/**
* @group functional
* @group legacy
*/
class FactoryTest extends \PhraseanetTestCase
{
/**

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Provider\Github;
use Alchemy\Phrasea\Authentication\Provider\ProviderInterface;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class GithubTest extends ProviderTestCase
{
public function provideDataForFailingCallback()

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Provider\GooglePlus;
use Alchemy\Phrasea\Authentication\Provider\ProviderInterface;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class GooglePlusTest extends ProviderTestCase
{
public function testGetSetGoogleClient()

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Provider\Linkedin;
use Alchemy\Phrasea\Authentication\Provider\ProviderInterface;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class LinkedinTest extends ProviderTestCase
{
public function provideDataForFailingCallback()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\Provider\Token;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class IdentityTest extends \PhraseanetTestCase
{
public function testThatOffsetAreSetOnConstruct()

View File

@@ -4,6 +4,10 @@ namespace Alchemy\Tests\Phrasea\Authentication\Provider\Token;
use Alchemy\Phrasea\Authentication\Provider\Token\Token;
/**
* @group functional
* @group legacy
*/
class TokenTest extends \PhraseanetTestCase
{
public function testGetIdAndProvider()

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Provider\Twitter;
use Alchemy\Phrasea\Authentication\Provider\ProviderInterface;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class TwitterTest extends ProviderTestCase
{
public function testGetSetGuzzleClient()

View File

@@ -6,6 +6,10 @@ use Alchemy\Phrasea\Authentication\Provider\Viadeo;
use Alchemy\Phrasea\Authentication\Provider\ProviderInterface;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
/**
* @group functional
* @group legacy
*/
class ViadeoTest extends ProviderTestCase
{
public function provideDataForFailingCallback()

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Authentication;
use Alchemy\Phrasea\Authentication\ProvidersCollection;
use Alchemy\Phrasea\Exception\InvalidArgumentException;
/**
* @group functional
* @group legacy
*/
class ProvidersCollectionTest extends \PhraseanetTestCase
{
/**

View File

@@ -5,6 +5,10 @@ namespace Alchemy\Tests\Phrasea\Authentication;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
use Alchemy\Phrasea\Authentication\SuggestionFinder;
/**
* @group functional
* @group legacy
*/
class SuggestionFinderTest extends \PhraseanetTestCase
{
public function testSuggestionIsFound()