public function testMethodConnectHasParameterStringUserid()
{
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
->method('fetch')
public function testMethodConnectHasParameterArrayCredentials()
{
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
->method('fetch')
public function testMethodConnectHasPostconditionThatTheUserMailAddressIsKnown()
{
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
->method('fetch')
public function testMethodConnectHasPostconditionThatTheUserUidIsKnown()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('uid'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodConnectHasPostconditionThatTheUserNameIsKnown()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('name'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodConnectHasPostconditionThatTheUsersImapHostIsKnown()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('home.example.org'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodConnectHasPostconditionThatTheUsersFreebusyHostIsKnown()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('freebusy.example.org'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetidHasResultStringTheIdOfTheUserUserUsedForConnecting()
{
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
->method('fetch')
public function testMethodGetmailHasResultStringTheMailOfTheConnectedUser()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
public function testMethodGetuidHasResultStringTheUidOfTheConnectedUser()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetnameHasResultStringTheNameOfTheConnectedUser()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringTheUsersFreebusyServerConverterdToACompleteUrlUsingParametersIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('freebusy.example.org'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringTheUsersFreebusyServerConverterdToACompleteUrlUsingFreebusyIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('freebusy.example.org'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringTheConfiguredServerIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringTheUsersHomeServerConverterdToACompleteUrlUsingParametersIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringTheUsersHomeServerConverterdToACompleteUrlUsingFreebusyIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringLocalhostConvertedToACompleteUrlUsingParametersIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetfreebusyserverHasResultStringLocalhostConvertedToACompleteUrlUsingFreebusy()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetimapserverHasResultStringTheUsersHomeServerIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->returnValue('home.example.org'));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetimapserverHasResultStringTheConfiguredServerIfAvailable()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
public function testMethodGetimapserverHasResultStringLocalhostIfNoAlternative()
{
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
+ $this->user->expects($this->exactly(5))
+ ->method('getSingle')
->will($this->throwException(new Horde_Kolab_Server_Exception_Novalue()));
$composite = $this->_getMockedComposite();
$composite->objects->expects($this->once())
$auth->expects($this->once())
->method('getCurrentUser')
->will($this->returnValue('somebody@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
$composite = $this->_getMockedComposite();
$auth->expects($this->once())
->method('getCurrentUser')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
$composite = $this->_getMockedComposite();
$auth->expects($this->once())
->method('getCurrentUser')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
$composite = $this->_getMockedComposite();
$auth->expects($this->once())
->method('getCurrentUser')
->will($this->returnValue('mail@example.org'));
- $this->user->expects($this->exactly(4))
- ->method('getExternal')
- ->will($this->returnValue(array('mail@example.org')));
- $this->user->expects($this->exactly(1))
+ $this->user->expects($this->exactly(5))
->method('getSingle')
->will($this->returnValue('mail@example.org'));
$composite = $this->_getMockedComposite();