summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Core/Tests/Authorization/Voter/AbstractVoterTest.php4
-rw-r--r--Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php42
2 files changed, 2 insertions, 44 deletions
diff --git a/Core/Tests/Authorization/Voter/AbstractVoterTest.php b/Core/Tests/Authorization/Voter/AbstractVoterTest.php
index 0fddd88..7062d39 100644
--- a/Core/Tests/Authorization/Voter/AbstractVoterTest.php
+++ b/Core/Tests/Authorization/Voter/AbstractVoterTest.php
@@ -95,7 +95,7 @@ class AbstractVoterTest_LegacyVoter extends AbstractVoter
{
protected function getSupportedClasses()
{
- return array('AbstractVoterTest_Object');
+ return array('stdClass');
}
protected function getSupportedAttributes()
@@ -113,7 +113,7 @@ class AbstractVoterTest_NothingImplementedVoter extends AbstractVoter
{
protected function getSupportedClasses()
{
- return array('AbstractVoterTest_Object');
+ return array('stdClass');
}
protected function getSupportedAttributes()
diff --git a/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php b/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php
deleted file mode 100644
index b49f23f..0000000
--- a/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Core\Tests\Authorization\Voter;
-
-use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter;
-
-class LegacyAbstractVoterTest_Voter extends AbstractVoter
-{
- protected function getSupportedClasses()
- {
- return array('AbstractVoterTest_Object');
- }
-
- protected function getSupportedAttributes()
- {
- return array('EDIT', 'CREATE');
- }
-
- protected function isGranted($attribute, $object, $user = null)
- {
- return 'EDIT' === $attribute;
- }
-}
-
-class LegacyAbstractVoterTest extends AbstractVoterTest
-{
- protected function setUp()
- {
- parent::setUp();
-
- $this->voter = new LegacyAbstractVoterTest_Voter();
- }
-}