eZ\Publish\Core\MVC\Symfony\Security\Tests\Voter\CoreVoterTest::voteProvider PHP Method

voteProvider() public method

public voteProvider ( )
    public function voteProvider()
    {
        return array(array(new Attribute('content', 'read'), true, VoterInterface::ACCESS_GRANTED), array(new Attribute('foo', 'bar'), true, VoterInterface::ACCESS_GRANTED), array(new Attribute('content', 'read'), false, VoterInterface::ACCESS_DENIED), array(new Attribute('some', 'thing'), false, VoterInterface::ACCESS_DENIED), array(new Attribute('content', 'read', array('valueObject' => $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject'), 'targets' => $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject'))), null, VoterInterface::ACCESS_ABSTAIN), array(new Attribute('content', 'read', array('valueObject' => $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject'), 'targets' => array($this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject')))), null, VoterInterface::ACCESS_ABSTAIN), array(new Attribute('content', 'read', array('valueObject' => $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject'), 'targets' => $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject'))), null, VoterInterface::ACCESS_ABSTAIN), array(new Attribute('content', 'read', array('valueObject' => $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject'), 'targets' => array($this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ValueObject')))), null, VoterInterface::ACCESS_ABSTAIN));
    }