Horde_ActiveSync_Driver_MockConnector
in package
Mock connector for testing using the Horde_ActiveSync_Driver_Mock driver.
Tags
Table of Contents
- export() : Horde_ActiveSync_Message_Base
- MUST mock this method if needed so we can return the expected object.
- getActionTimestamp() : mixed
- Always returns a MODSEQ of 2. Mock to override.
- getChanges() : mixed
- By default, return no changes. Mock this method to override.
- listApis() : mixed
- By default, support the main groupware apps, minus mail.
- listUids() : mixed
- By default, return 2 UIDs as shown below. Mock this method to override.
Methods
export()
MUST mock this method if needed so we can return the expected object.
public
export(mixed $id, mixed $options) : Horde_ActiveSync_Message_Base
Parameters
- $id : mixed
- $options : mixed
Return values
Horde_ActiveSync_Message_Base —getActionTimestamp()
Always returns a MODSEQ of 2. Mock to override.
public
getActionTimestamp(mixed $id, mixed $action) : mixed
Parameters
- $id : mixed
- $action : mixed
Return values
mixed —getChanges()
By default, return no changes. Mock this method to override.
public
getChanges(mixed $folderid, mixed $from_ts, mixed $to_ts) : mixed
Parameters
- $folderid : mixed
- $from_ts : mixed
- $to_ts : mixed
Return values
mixed —listApis()
By default, support the main groupware apps, minus mail.
public
listApis() : mixed
Mock this method to override.
Return values
mixed —listUids()
By default, return 2 UIDs as shown below. Mock this method to override.
public
listUids() : mixed