\Horde_ActiveSync_Driver_MockConnector

Mock connector for testing using the Horde_ActiveSync_Driver_Mock driver.

Summary

Methods
Properties
Constants
listApis()
listUids()
getChanges()
getActionTimestamp()
export()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

listApis()

listApis() 

By default, support the main groupware apps, minus mail.

Mock this method to override.

listUids()

listUids() 

By default, return 2 UIDs as shown below. Mock this method to override.

getChanges()

getChanges(  $folderid,   $from_ts,   $to_ts) 

By default, return no changes. Mock this method to override.

Parameters

$folderid
$from_ts
$to_ts

getActionTimestamp()

getActionTimestamp(  $id,   $action) 

Always returns a MODSEQ of 2. Mock to override.

Parameters

$id
$action

export()

export(  $id,   $options) : \Horde_ActiveSync_Message_Base

MUST mock this method if needed so we can return the expected object.

Parameters

$id
$options

Returns

\Horde_ActiveSync_Message_Base