public function testConvertRepositoryCapabilitiesConvertsArrayToRepositoryCapabilitiesObject()
 {
     $expectedCapabilities = new RepositoryCapabilities();
     $expectedCapabilities->setSupportsUnfiling(true);
     $expectedCapabilities->setSupportsPwcUpdatable(true);
     $expectedCapabilities->setSupportsMultifiling(true);
     $expectedCapabilities->setSupportsGetFolderTree(true);
     $expectedCapabilities->setSupportsGetDescendants(true);
     $expectedCapabilities->setAclCapability(CapabilityAcl::cast(CapabilityAcl::MANAGE));
     $expectedCapabilities->setChangesCapability(CapabilityChanges::cast(CapabilityChanges::PROPERTIES));
     $expectedCapabilities->setContentStreamUpdatesCapability(CapabilityContentStreamUpdates::cast(CapabilityContentStreamUpdates::ANYTIME));
     $creatablePropertyTypes = new CreatablePropertyTypes();
     $creatablePropertyTypes->setCanCreate(array(PropertyType::cast(PropertyType::DATETIME), PropertyType::cast(PropertyType::ID), PropertyType::cast(PropertyType::HTML)));
     $creatablePropertyTypes->setExtensions($this->cmisExtensionsDummy);
     $expectedCapabilities->setCreatablePropertyTypes($creatablePropertyTypes);
     $expectedCapabilities->setQueryCapability(CapabilityQuery::cast(CapabilityQuery::BOTHCOMBINED));
     $newTypeSettableAttributes = new NewTypeSettableAttributes();
     $newTypeSettableAttributes->setCanSetId(true);
     $newTypeSettableAttributes->setExtensions($this->cmisExtensionsDummy);
     $expectedCapabilities->setNewTypeSettableAttributes($newTypeSettableAttributes);
     $expectedCapabilities->setJoinCapability(CapabilityJoin::cast(CapabilityJoin::NONE));
     $expectedCapabilities->setRenditionsCapability(CapabilityRenditions::cast(CapabilityRenditions::NONE));
     $expectedCapabilities->setOrderByCapability(CapabilityOrderBy::cast(CapabilityOrderBy::NONE));
     $expectedCapabilities->setExtensions($this->cmisExtensionsDummy);
     $repositoryInfoArray = current($this->getResponseFixtureContentAsArray('Cmis/v1.1/BrowserBinding/getRepositoryInfo-full-response.log'));
     $result = $this->jsonConverter->convertRepositoryCapabilities($repositoryInfoArray[JSONConstants::JSON_REPINFO_CAPABILITIES]);
     $this->assertEquals($expectedCapabilities, $result);
     return $result;
 }
 /**
  * @depends testSetIsPwcUpdatableSetsProperty
  */
 public function testSetIsGetDescendantsSupportedReturnsPropertyValue()
 {
     $this->repositoryCapabilities->setSupportsGetDescendants(true);
     $this->assertSame(true, $this->repositoryCapabilities->isGetDescendantsSupported());
 }