[FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion

This commit is contained in:
Jan van Thoor 2019-07-19 15:02:52 +02:00 committed by Nicolas Grekas
parent 0bbcdc4400
commit 775d970927
31 changed files with 32 additions and 32 deletions

View File

@ -12,10 +12,10 @@
namespace Symfony\Bundle\FrameworkBundle\Tests;
use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\AbstractWebTestCase;
use Symfony\Component\HttpFoundation\Response;
class ClientTest extends WebTestCase
class ClientTest extends AbstractWebTestCase
{
public function testRebootKernelBetweenRequests()
{

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
use Symfony\Component\Filesystem\Filesystem;
class WebTestCase extends BaseWebTestCase
abstract class AbstractWebTestCase extends BaseWebTestCase
{
public static function assertRedirect($response, $location)
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
class AnnotatedControllerTest extends WebTestCase
class AnnotatedControllerTest extends AbstractWebTestCase
{
/**
* @dataProvider getRoutes

View File

@ -20,7 +20,7 @@ use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher;
use Symfony\Component\Templating\EngineInterface as ComponentEngineInterface;
class AutowiringTypesTest extends WebTestCase
class AutowiringTypesTest extends AbstractWebTestCase
{
public function testAnnotationReaderAutowiring()
{

View File

@ -18,7 +18,7 @@ use Symfony\Component\Console\Tester\CommandTester;
/**
* @group functional
*/
class CachePoolClearCommandTest extends WebTestCase
class CachePoolClearCommandTest extends AbstractWebTestCase
{
protected function setUp()
{

View File

@ -15,7 +15,7 @@ use Symfony\Component\Cache\Adapter\AdapterInterface;
use Symfony\Component\Cache\Adapter\RedisAdapter;
use Symfony\Component\Cache\Exception\InvalidArgumentException;
class CachePoolsTest extends WebTestCase
class CachePoolsTest extends AbstractWebTestCase
{
public function testCachePools()
{

View File

@ -19,7 +19,7 @@ use Symfony\Component\Console\Tester\CommandTester;
/**
* @group functional
*/
class ConfigDebugCommandTest extends WebTestCase
class ConfigDebugCommandTest extends AbstractWebTestCase
{
private $application;

View File

@ -19,7 +19,7 @@ use Symfony\Component\Console\Tester\CommandTester;
/**
* @group functional
*/
class ConfigDumpReferenceCommandTest extends WebTestCase
class ConfigDumpReferenceCommandTest extends AbstractWebTestCase
{
private $application;

View File

@ -17,7 +17,7 @@ use Symfony\Component\Console\Tester\ApplicationTester;
/**
* @group functional
*/
class ContainerDebugCommandTest extends WebTestCase
class ContainerDebugCommandTest extends AbstractWebTestCase
{
public function testDumpContainerIfNotExists()
{

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
/**
* Checks that the container compiles correctly when all the bundle features are enabled.
*/
class ContainerDumpTest extends WebTestCase
class ContainerDumpTest extends AbstractWebTestCase
{
public function testContainerCompilationInDebug()
{

View File

@ -17,7 +17,7 @@ use Symfony\Component\Console\Tester\ApplicationTester;
/**
* @group functional
*/
class DebugAutowiringCommandTest extends WebTestCase
class DebugAutowiringCommandTest extends AbstractWebTestCase
{
public function testBasicFunctionality()
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
class FragmentTest extends WebTestCase
class FragmentTest extends AbstractWebTestCase
{
/**
* @dataProvider getConfigs

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
class ProfilerTest extends WebTestCase
class ProfilerTest extends AbstractWebTestCase
{
/**
* @dataProvider getConfigs

View File

@ -13,7 +13,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
use Symfony\Component\PropertyInfo\Type;
class PropertyInfoTest extends WebTestCase
class PropertyInfoTest extends AbstractWebTestCase
{
public function testPhpDocPriority()
{

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
/**
* @author Kévin Dunglas <dunglas@gmail.com>
*/
class SerializerTest extends WebTestCase
class SerializerTest extends AbstractWebTestCase
{
public function testDeserializeArrayOfObject()
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
class SessionTest extends WebTestCase
class SessionTest extends AbstractWebTestCase
{
/**
* Tests session attributes persist.

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
class SubRequestsTest extends WebTestCase
class SubRequestsTest extends AbstractWebTestCase
{
public function testStateAfterSubRequest()
{

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
use Symfony\Component\Filesystem\Filesystem;
class WebTestCase extends BaseWebTestCase
class AbstractWebTestCase extends BaseWebTestCase
{
public static function assertRedirect($response, $location)
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
class AuthenticationCommencingTest extends WebTestCase
class AuthenticationCommencingTest extends AbstractWebTestCase
{
public function testAuthenticationIsCommencingIfAccessDeniedExceptionIsWrapped()
{

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
use Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager;
class AutowiringTypesTest extends WebTestCase
class AutowiringTypesTest extends AbstractWebTestCase
{
public function testAccessDecisionManagerAutowiring()
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
class CsrfFormLoginTest extends WebTestCase
class CsrfFormLoginTest extends AbstractWebTestCase
{
/**
* @dataProvider getConfigs

View File

@ -13,7 +13,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
use Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FirewallEntryPointBundle\Security\EntryPointStub;
class FirewallEntryPointTest extends WebTestCase
class FirewallEntryPointTest extends AbstractWebTestCase
{
public function testItUsesTheConfiguredEntryPointWhenUsingUnknownCredentials()
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
class FormLoginTest extends WebTestCase
class FormLoginTest extends AbstractWebTestCase
{
/**
* @dataProvider getConfigs

View File

@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\JsonResponse;
/**
* @author Kévin Dunglas <dunglas@gmail.com>
*/
class JsonLoginTest extends WebTestCase
class JsonLoginTest extends AbstractWebTestCase
{
public function testDefaultJsonLoginSuccess()
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
class LocalizedRoutesAsPathTest extends WebTestCase
class LocalizedRoutesAsPathTest extends AbstractWebTestCase
{
/**
* @dataProvider getLocales

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
class LogoutTest extends WebTestCase
class LogoutTest extends AbstractWebTestCase
{
public function testSessionLessRememberMeLogout()
{

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
class SecurityRoutingIntegrationTest extends WebTestCase
class SecurityRoutingIntegrationTest extends AbstractWebTestCase
{
/**
* @dataProvider getConfigs

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\User\User;
class SecurityTest extends WebTestCase
class SecurityTest extends AbstractWebTestCase
{
public function testServiceIsFunctional()
{

View File

@ -35,7 +35,7 @@ use Symfony\Component\Security\Acl\Permission\BasicPermissionMap;
* @requires extension pdo_sqlite
* @group legacy
*/
class SetAclCommandTest extends WebTestCase
class SetAclCommandTest extends AbstractWebTestCase
{
const OBJECT_CLASS = 'Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\AclBundle\Entity\Car';
const SECURITY_CLASS = 'Symfony\Component\Security\Core\User\User';

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Security\Http\Firewall\SwitchUserListener;
class SwitchUserTest extends WebTestCase
class SwitchUserTest extends AbstractWebTestCase
{
/**
* @dataProvider getTestParameters

View File

@ -25,7 +25,7 @@ use Symfony\Component\Security\Core\Encoder\Pbkdf2PasswordEncoder;
*
* @author Sarah Khalil <mkhalil.sarah@gmail.com>
*/
class UserPasswordEncoderCommandTest extends WebTestCase
class UserPasswordEncoderCommandTest extends AbstractWebTestCase
{
/** @var CommandTester */
private $passwordEncoderCommandTester;