File tree 1 file changed +0
-36
lines changed
src/Symfony/Component/Security/Core/Tests/Authorization
1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change 16
16
17
17
class AccessDecisionManagerTest extends \PHPUnit_Framework_TestCase
18
18
{
19
- /**
20
- * @group legacy
21
- */
22
- public function testSupportsClass ()
23
- {
24
- $ manager = new AccessDecisionManager (array (
25
- $ this ->getVoterSupportsClass (true ),
26
- $ this ->getVoterSupportsClass (false ),
27
- ));
28
- $ this ->assertTrue ($ manager ->supportsClass ('FooClass ' ));
29
-
30
- $ manager = new AccessDecisionManager (array (
31
- $ this ->getVoterSupportsClass (false ),
32
- $ this ->getVoterSupportsClass (false ),
33
- ));
34
- $ this ->assertFalse ($ manager ->supportsClass ('FooClass ' ));
35
- }
36
-
37
- /**
38
- * @group legacy
39
- */
40
- public function testSupportsAttribute ()
41
- {
42
- $ manager = new AccessDecisionManager (array (
43
- $ this ->getVoterSupportsAttribute (true ),
44
- $ this ->getVoterSupportsAttribute (false ),
45
- ));
46
- $ this ->assertTrue ($ manager ->supportsAttribute ('foo ' ));
47
-
48
- $ manager = new AccessDecisionManager (array (
49
- $ this ->getVoterSupportsAttribute (false ),
50
- $ this ->getVoterSupportsAttribute (false ),
51
- ));
52
- $ this ->assertFalse ($ manager ->supportsAttribute ('foo ' ));
53
- }
54
-
55
19
/**
56
20
* @expectedException \InvalidArgumentException
57
21
*/
You can’t perform that action at this time.
0 commit comments