Skip to content

Commit 0765272

Browse files
committed
Rename internal WebTestCase to AbstractWebTestCase
SecurityBundle had 2 classes called WebTestCase, one of which is only meant for internal tests. To avoid confusion the internal class has been renamed to AbstractWebTestCase and made abstract. See #32577
1 parent 178ce6b commit 0765272

15 files changed

+15
-15
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php renamed to src/Symfony/Bundle/SecurityBundle/Tests/Functional/AbstractWebTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
1515
use Symfony\Component\Filesystem\Filesystem;
1616

17-
class WebTestCase extends BaseWebTestCase
17+
abstract class AbstractWebTestCase extends BaseWebTestCase
1818
{
1919
public static function assertRedirect($response, $location)
2020
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticationCommencingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class AuthenticationCommencingTest extends WebTestCase
14+
class AuthenticationCommencingTest extends AbstractWebTestCase
1515
{
1616
public function testAuthenticationIsCommencingIfAccessDeniedExceptionIsWrapped()
1717
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/AutowiringTypesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
1515
use Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager;
1616

17-
class AutowiringTypesTest extends WebTestCase
17+
class AutowiringTypesTest extends AbstractWebTestCase
1818
{
1919
public function testAccessDecisionManagerAutowiring()
2020
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class CsrfFormLoginTest extends WebTestCase
14+
class CsrfFormLoginTest extends AbstractWebTestCase
1515
{
1616
/**
1717
* @dataProvider getConfigs

src/Symfony/Bundle/SecurityBundle/Tests/Functional/FirewallEntryPointTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FirewallEntryPointBundle\Security\EntryPointStub;
1515

16-
class FirewallEntryPointTest extends WebTestCase
16+
class FirewallEntryPointTest extends AbstractWebTestCase
1717
{
1818
public function testItUsesTheConfiguredEntryPointWhenUsingUnknownCredentials()
1919
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/FormLoginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class FormLoginTest extends WebTestCase
14+
class FormLoginTest extends AbstractWebTestCase
1515
{
1616
/**
1717
* @dataProvider getConfigs

src/Symfony/Bundle/SecurityBundle/Tests/Functional/JsonLoginLdapTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\HttpKernel\Kernel;
1515

16-
class JsonLoginLdapTest extends WebTestCase
16+
class JsonLoginLdapTest extends AbstractWebTestCase
1717
{
1818
public function testKernelBoot()
1919
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/JsonLoginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* @author Kévin Dunglas <dunglas@gmail.com>
1818
*/
19-
class JsonLoginTest extends WebTestCase
19+
class JsonLoginTest extends AbstractWebTestCase
2020
{
2121
public function testDefaultJsonLoginSuccess()
2222
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/LocalizedRoutesAsPathTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class LocalizedRoutesAsPathTest extends WebTestCase
14+
class LocalizedRoutesAsPathTest extends AbstractWebTestCase
1515
{
1616
/**
1717
* @dataProvider getLocales

src/Symfony/Bundle/SecurityBundle/Tests/Functional/LogoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class LogoutTest extends WebTestCase
14+
class LogoutTest extends AbstractWebTestCase
1515
{
1616
public function testSessionLessRememberMeLogout()
1717
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/MissingUserProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class MissingUserProviderTest extends WebTestCase
14+
class MissingUserProviderTest extends AbstractWebTestCase
1515
{
1616
/**
1717
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException

src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityRoutingIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
1313

14-
class SecurityRoutingIntegrationTest extends WebTestCase
14+
class SecurityRoutingIntegrationTest extends AbstractWebTestCase
1515
{
1616
/**
1717
* @dataProvider getConfigs

src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
1515
use Symfony\Component\Security\Core\User\User;
1616

17-
class SecurityTest extends WebTestCase
17+
class SecurityTest extends AbstractWebTestCase
1818
{
1919
public function testServiceIsFunctional()
2020
{

src/Symfony/Bundle/SecurityBundle/Tests/Functional/SwitchUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\HttpFoundation\JsonResponse;
1515
use Symfony\Component\Security\Http\Firewall\SwitchUserListener;
1616

17-
class SwitchUserTest extends WebTestCase
17+
class SwitchUserTest extends AbstractWebTestCase
1818
{
1919
/**
2020
* @dataProvider getTestParameters

src/Symfony/Bundle/SecurityBundle/Tests/Functional/UserPasswordEncoderCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Sarah Khalil <mkhalil.sarah@gmail.com>
2727
*/
28-
class UserPasswordEncoderCommandTest extends WebTestCase
28+
class UserPasswordEncoderCommandTest extends AbstractWebTestCase
2929
{
3030
/** @var CommandTester */
3131
private $passwordEncoderCommandTester;

0 commit comments

Comments
 (0)