Skip to content

Commit 9fe3b76

Browse files
committed
fix tests for the AbstractVoter class
* The `LegacyAbstractVoterTest` class is not needed anymore, tests have been moved to the `AbstractVoterTest` class tagging them with the legacy group. * Tests are applied on `stdClass` object instances. Thus, the legacy voter fixture class must not support `AbstractVoterTest_Object` instances, but support `stdClass` objects instead.
1 parent 634aafc commit 9fe3b76

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class AbstractVoterTest_LegacyVoter extends AbstractVoter
9595
{
9696
protected function getSupportedClasses()
9797
{
98-
return array('AbstractVoterTest_Object');
98+
return array('stdClass');
9999
}
100100

101101
protected function getSupportedAttributes()
@@ -113,7 +113,7 @@ class AbstractVoterTest_NothingImplementedVoter extends AbstractVoter
113113
{
114114
protected function getSupportedClasses()
115115
{
116-
return array('AbstractVoterTest_Object');
116+
return array('stdClass');
117117
}
118118

119119
protected function getSupportedAttributes()

src/Symfony/Component/Security/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php

-42
This file was deleted.

0 commit comments

Comments
 (0)