public function testMethodFindHasPostconditionThatTheCallWasDelegatedToTheServer()
{
- $result = $this->getMock('Horde_Kolab_Server_Result');
+ $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')
->with($query)
->will($this->returnValue($result));
$this->assertType(
- 'Horde_Kolab_Server_Result',
+ 'Horde_Kolab_Server_Result_Interface',
$this->cleaner->find($query)
);
}
{
$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')
public function testMethodFindHasPostconditionThatTheCallWasDelegatedToTheServer()
{
- $result = $this->getMock('Horde_Kolab_Server_Result');
+ $result = $this->getMock('Horde_Kolab_Server_Result_Interface');
$query = $this->getMock(
'Horde_Kolab_Server_Query_Element', array(), array(), '', false
);
->with($query)
->will($this->returnValue($result));
$this->assertType(
- 'Horde_Kolab_Server_Result',
+ 'Horde_Kolab_Server_Result_Interface',
$this->logged->find($query)
);
}
public function testMethodFindbelowHasPostconditionThatTheCallWasDelegatedToTheServer()
{
- $result = $this->getMock('Horde_Kolab_Server_Result');
+ $result = $this->getMock('Horde_Kolab_Server_Result_Interface');
$query = $this->getMock(
'Horde_Kolab_Server_Query_Element', array(), array(), '', false
);
{
public function setUp()
{
+ $this->markTestIncomplete('Needs to be fixed');
+
$this->object = $this->getMock(
- 'Horde_Kolab_Server_Object', array(), array(), '', false
+ 'Horde_Kolab_Server_Object_Base', array(), array(), '', false
);
$this->composite = $this->getMock(
'Horde_Kolab_Server_Composite', array(), array(), '', false
);
-
- $this->markTestIncomplete('Needs to be fixed');
}
public function testMethodValueHasResultArrayTheValuesOfTheAttribute()