Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3c5989

Browse files
committed
Remove more tests
1 parent 6f9e897 commit c3c5989

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,42 +16,6 @@
1616

1717
class AccessDecisionManagerTest extends \PHPUnit_Framework_TestCase
1818
{
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-
5519
/**
5620
* @expectedException \InvalidArgumentException
5721
*/

0 commit comments

Comments
 (0)