summaryrefslogtreecommitdiffstats
path: root/Core/Tests/Authorization
diff options
context:
space:
mode:
authorNicolas Grekas <nicolas.grekas@gmail.com>2015-11-26 15:51:35 +0100
committerNicolas Grekas <nicolas.grekas@gmail.com>2015-11-26 15:51:35 +0100
commit7fb58694400f63e4f01e0bb9750c04d071524619 (patch)
treea8b134b661a0cf7dbef69d7f0d25058837718f68 /Core/Tests/Authorization
parentf6d11e7f3c9834df9dcb66407798bbf427132381 (diff)
parent3bc433a9e00e6f9d12e144fd47403357bdd2fdae (diff)
downloadsymfony-security-7fb58694400f63e4f01e0bb9750c04d071524619.zip
symfony-security-7fb58694400f63e4f01e0bb9750c04d071524619.tar.gz
symfony-security-7fb58694400f63e4f01e0bb9750c04d071524619.tar.bz2
Merge branch '2.8'
* 2.8: [Security] Deprecate "AbstractVoter" in favor of "Voter" [Security] Revert changes made between 2.7 and 2.8-beta Conflicts: UPGRADE-2.8.md src/Symfony/Component/Security/Core/Authorization/Voter/AbstractVoter.php src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php
Diffstat (limited to 'Core/Tests/Authorization')
-rw-r--r--Core/Tests/Authorization/Voter/VoterTest.php (renamed from Core/Tests/Authorization/Voter/AbstractVoterTest.php)8
1 files changed, 4 insertions, 4 deletions
diff --git a/Core/Tests/Authorization/Voter/AbstractVoterTest.php b/Core/Tests/Authorization/Voter/VoterTest.php
index 537dc4c..4bac44d 100644
--- a/Core/Tests/Authorization/Voter/AbstractVoterTest.php
+++ b/Core/Tests/Authorization/Voter/VoterTest.php
@@ -12,10 +12,10 @@
namespace Symfony\Component\Security\Core\Tests\Authorization\Voter;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
-use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter;
+use Symfony\Component\Security\Core\Authorization\Voter\Voter;
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
-class AbstractVoterTest extends \PHPUnit_Framework_TestCase
+class VoterTest extends \PHPUnit_Framework_TestCase
{
protected $token;
@@ -50,13 +50,13 @@ class AbstractVoterTest extends \PHPUnit_Framework_TestCase
*/
public function testVote(array $attributes, $expectedVote, $object, $message)
{
- $voter = new AbstractVoterTest_Voter();
+ $voter = new VoterTest_Voter();
$this->assertEquals($expectedVote, $voter->vote($this->token, $object, $attributes), $message);
}
}
-class AbstractVoterTest_Voter extends AbstractVoter
+class VoterTest_Voter extends Voter
{
protected function voteOnAttribute($attribute, $object, TokenInterface $token)
{