public function providerForTestEvaluate()
{
// Mocks for testing Content & VersionInfo objects, should only be used once because of expect rules.
$contentMock = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\Content\\Content', array(), array(), '', false);
$versionInfoMock = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\Content\\VersionInfo', array(), array(), '', false);
$contentMock->expects($this->once())->method('getVersionInfo')->will($this->returnValue($versionInfoMock));
$versionInfoMock->expects($this->once())->method('getContentInfo')->will($this->returnValue(new ContentInfo(array('contentTypeId' => 66))));
$versionInfoMock2 = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\Content\\VersionInfo', array(), array(), '', false);
$versionInfoMock2->expects($this->once())->method('getContentInfo')->will($this->returnValue(new ContentInfo(array('contentTypeId' => 66))));
return array(array('limitation' => new ContentTypeLimitation(), 'object' => new ContentInfo(), 'targets' => array(), 'expected' => false), array('limitation' => new ContentTypeLimitation(array('limitationValues' => array(2))), 'object' => new ContentInfo(), 'targets' => array(), 'expected' => false), array('limitation' => new ContentTypeLimitation(array('limitationValues' => array(66))), 'object' => new ContentInfo(array('contentTypeId' => 66)), 'targets' => array(), 'expected' => true), array('limitation' => new ContentTypeLimitation(array('limitationValues' => array(66))), 'object' => $contentMock, 'targets' => array(), 'expected' => true), array('limitation' => new ContentTypeLimitation(array('limitationValues' => array(66))), 'object' => $versionInfoMock2, 'targets' => array(), 'expected' => true), array('limitation' => new ContentTypeLimitation(array('limitationValues' => array(2))), 'object' => new ContentCreateStruct(array('contentType' => (object) array('id' => 22))), 'targets' => array(), 'expected' => false), array('limitation' => new ContentTypeLimitation(array('limitationValues' => array(2, 43))), 'object' => new ContentCreateStruct(array('contentType' => (object) array('id' => 43))), 'targets' => array(), 'expected' => true));
}