Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 32bb482

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 c2b112b commit 32bb482

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

Core/Tests/Authorization/Voter/AbstractVoterTest.php

Lines changed: 2 additions & 2 deletions
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()

Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)