Remove wrong @group legacy annotations

This commit is contained in:
Nicolas Grekas 2019-11-18 08:44:14 +01:00
parent 12f00e3e15
commit 8d84ac34a5
11 changed files with 2 additions and 30 deletions

View File

@ -60,8 +60,6 @@ class ConfigurationTest extends TestCase
} }
/** /**
* @group legacy
*
* @dataProvider getInterceptRedirectsConfiguration * @dataProvider getInterceptRedirectsConfiguration
*/ */
public function testConfigTreeUsingInterceptRedirects(bool $interceptRedirects, array $expectedResult) public function testConfigTreeUsingInterceptRedirects(bool $interceptRedirects, array $expectedResult)

View File

@ -142,8 +142,6 @@ class WebProfilerExtensionTest extends TestCase
} }
/** /**
* @group legacy
*
* @dataProvider getInterceptRedirectsToolbarConfig * @dataProvider getInterceptRedirectsToolbarConfig
*/ */
public function testToolbarConfigUsingInterceptRedirects( public function testToolbarConfigUsingInterceptRedirects(

View File

@ -28,9 +28,6 @@ class BundleTest extends TestCase
); );
} }
/**
* @group legacy
*/
public function testGetContainerExtensionWithInvalidClass() public function testGetContainerExtensionWithInvalidClass()
{ {
$this->expectException('LogicException'); $this->expectException('LogicException');

View File

@ -52,7 +52,7 @@ abstract class ObjectLoader extends Loader
$loaderObject = $this->getObject($parts[0]); $loaderObject = $this->getObject($parts[0]);
if (!\is_object($loaderObject)) { if (!\is_object($loaderObject)) {
throw new \LogicException(sprintf('%s:getObject() must return an object: %s returned', \get_class($this), \gettype($loaderObject))); throw new \TypeError(sprintf('%s:getObject() must return an object: %s returned', \get_class($this), \gettype($loaderObject)));
} }
if (!\is_callable([$loaderObject, $method])) { if (!\is_callable([$loaderObject, $method])) {

View File

@ -62,12 +62,9 @@ class ObjectLoaderTest extends TestCase
]; ];
} }
/**
* @group legacy
*/
public function testExceptionOnNoObjectReturned() public function testExceptionOnNoObjectReturned()
{ {
$this->expectException('LogicException'); $this->expectException(\TypeError::class);
$loader = new TestObjectLoader(); $loader = new TestObjectLoader();
$loader->loaderMap = ['my_service' => 'NOT_AN_OBJECT']; $loader->loaderMap = ['my_service' => 'NOT_AN_OBJECT'];
$loader->load('my_service::method'); $loader->load('my_service::method');

View File

@ -22,9 +22,6 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
class DaoAuthenticationProviderTest extends TestCase class DaoAuthenticationProviderTest extends TestCase
{ {
/**
* @group legacy
*/
public function testRetrieveUserWhenProviderDoesNotReturnAnUserInterface() public function testRetrieveUserWhenProviderDoesNotReturnAnUserInterface()
{ {
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationServiceException'); $this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationServiceException');

View File

@ -62,9 +62,6 @@ class UserAuthenticationProviderTest extends TestCase
$provider->authenticate($this->getSupportedToken()); $provider->authenticate($this->getSupportedToken());
} }
/**
* @group legacy
*/
public function testAuthenticateWhenProviderDoesNotReturnAnUserInterface() public function testAuthenticateWhenProviderDoesNotReturnAnUserInterface()
{ {
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationServiceException'); $this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationServiceException');

View File

@ -72,9 +72,6 @@ class ExceptionListenerTest extends TestCase
]; ];
} }
/**
* @group legacy
*/
public function testExceptionWhenEntryPointReturnsBadValue() public function testExceptionWhenEntryPointReturnsBadValue()
{ {
$event = $this->createEvent(new AuthenticationException()); $event = $this->createEvent(new AuthenticationException());

View File

@ -123,9 +123,6 @@ class LogoutListenerTest extends TestCase
$listener($event); $listener($event);
} }
/**
* @group legacy
*/
public function testSuccessHandlerReturnsNonResponse() public function testSuccessHandlerReturnsNonResponse()
{ {
$this->expectException('RuntimeException'); $this->expectException('RuntimeException');

View File

@ -39,9 +39,6 @@ class AbstractRememberMeServicesTest extends TestCase
$this->assertNull($service->autoLogin(new Request())); $this->assertNull($service->autoLogin(new Request()));
} }
/**
* @group legacy
*/
public function testAutoLoginThrowsExceptionWhenImplementationDoesNotReturnUserInterface() public function testAutoLoginThrowsExceptionWhenImplementationDoesNotReturnUserInterface()
{ {
$this->expectException('RuntimeException'); $this->expectException('RuntimeException');

View File

@ -20,9 +20,6 @@ class WorkflowTest extends TestCase
{ {
use WorkflowBuilderTrait; use WorkflowBuilderTrait;
/**
* @group legacy
*/
public function testGetMarkingWithInvalidStoreReturn() public function testGetMarkingWithInvalidStoreReturn()
{ {
$this->expectException('Symfony\Component\Workflow\Exception\LogicException'); $this->expectException('Symfony\Component\Workflow\Exception\LogicException');