Remove more tests
This commit is contained in:
parent
6f9e8977ce
commit
c3c598986c
@ -16,42 +16,6 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
||||
|
||||
class AccessDecisionManagerTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @group legacy
|
||||
*/
|
||||
public function testSupportsClass()
|
||||
{
|
||||
$manager = new AccessDecisionManager(array(
|
||||
$this->getVoterSupportsClass(true),
|
||||
$this->getVoterSupportsClass(false),
|
||||
));
|
||||
$this->assertTrue($manager->supportsClass('FooClass'));
|
||||
|
||||
$manager = new AccessDecisionManager(array(
|
||||
$this->getVoterSupportsClass(false),
|
||||
$this->getVoterSupportsClass(false),
|
||||
));
|
||||
$this->assertFalse($manager->supportsClass('FooClass'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group legacy
|
||||
*/
|
||||
public function testSupportsAttribute()
|
||||
{
|
||||
$manager = new AccessDecisionManager(array(
|
||||
$this->getVoterSupportsAttribute(true),
|
||||
$this->getVoterSupportsAttribute(false),
|
||||
));
|
||||
$this->assertTrue($manager->supportsAttribute('foo'));
|
||||
|
||||
$manager = new AccessDecisionManager(array(
|
||||
$this->getVoterSupportsAttribute(false),
|
||||
$this->getVoterSupportsAttribute(false),
|
||||
));
|
||||
$this->assertFalse($manager->supportsAttribute('foo'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user