{
$result = $this->getMock('Horde_Kolab_Server_Result_Interface');
$query = $this->getMock(
- 'Horde_Kolab_Server_Query_Element', array(), array(), '', false
+ 'Horde_Kolab_Server_Query_Element_Interface', array(), array(), '', false
);
$this->server->expects($this->exactly(1))
->method('find')
{
$result = $this->getMock('Horde_Kolab_Server_Result_Interface');
$query = $this->getMock(
- 'Horde_Kolab_Server_Query_Element', array(), array(), '', false
+ 'Horde_Kolab_Server_Query_Element_Interface', array(), array(), '', false
);
$this->server->expects($this->exactly(1))
->method('findBelow')
->with($query, 'none')
->will($this->returnValue($result));
$this->assertType(
- 'Horde_Kolab_Server_Result',
+ 'Horde_Kolab_Server_Result_Interface',
$this->logged->findBelow($query, 'none')
);
}
->method('getConnection')
->will(
$this->returnValue(
- $this->getMock('Horde_Kolab_Server_Connection')
+ $this->getMock('Horde_Kolab_Server_Connection_Interface')
)
);
$factory = new Horde_Kolab_Server_Factory_Constructor(
$this->search, $this->schema, array('basedn' => 'test')
);
$this->assertType(
- 'Horde_Kolab_Server_Connection',
+ 'Horde_Kolab_Server_Connection_Interface',
$factory->getConnection()
);
}
$this->markTestIncomplete('Needs to be fixed');
$this->object = $this->getMock(
- 'Horde_Kolab_Server_Object_Base', array(), array(), '', false
+ 'Horde_Kolab_Server_Object_Interface', array(), array(), '', false
);
$this->composite = $this->getMock(
'Horde_Kolab_Server_Composite', array(), array(), '', false
public function testMethodFindHasResultServerResultTheSearchResult()
{
$this->skipIfNoLdap();
- $result = $this->getMock('Horde_Kolab_Server_Result');
+ $result = $this->getMock('Horde_Kolab_Server_Result_Interface');
$this->composite->server->expects($this->exactly(1))
->method('find')
->with('(objectClass=equals)', array())
->will($this->returnValue($result));
$equals = new Horde_Kolab_Server_Query_Element_Equals('objectClass', 'equals');
$this->assertType(
- 'Horde_Kolab_Server_Result',
+ 'Horde_Kolab_Server_Result_Interface',
$this->composite->structure->find($equals, array())
);
}
public function testMethodFindBelowHasResultServerResultTheSearchResult()
{
$this->skipIfNoLdap();
- $result = $this->getMock('Horde_Kolab_Server_Result');
+ $result = $this->getMock('Horde_Kolab_Server_Result_Interface');
$this->composite->server->expects($this->exactly(1))
->method('findBelow')
->with('(objectClass=equals)', 'base', array())
->will($this->returnValue($result));
$equals = new Horde_Kolab_Server_Query_Element_Equals('objectClass', 'equals');
$this->assertType(
- 'Horde_Kolab_Server_Result',
+ 'Horde_Kolab_Server_Result_Interface',
$this->composite->structure->findBelow($equals, 'base', array())
);
}