getDuplicateDefaults() public method

Return any default folder duplicates.
public getDuplicateDefaults ( ) : array
return array The list of duplicate default folders accessible to the current user.
Exemplo n.º 1
0
 /**
  * Return any default folder duplicates.
  *
  * @return array The list of duplicate default folders accessible to the current user.
  */
 public function getDuplicateDefaults()
 {
     return $this->_sync->getDuplicateDefaults();
 }
Exemplo n.º 2
0
 public function testGetDuplicateDefaults()
 {
     $duplicates = array('a' => 'b');
     $defaults = $this->getMock('Horde_Kolab_Storage_List_Query_List_Defaults_Bail');
     $defaults->expects($this->once())->method('getDuplicates')->will($this->returnValue($duplicates));
     $synchronization = new Horde_Kolab_Storage_List_Query_List_Cache_Synchronization($this->getMock('Horde_Kolab_Storage_Driver'), new Horde_Kolab_Storage_Folder_Types(), $defaults);
     $this->assertEquals($duplicates, $synchronization->getDuplicateDefaults());
 }