$composite->structure->expects($this->once())
->method('getInternalAttributes')
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
- ->will($this->returnValue(array('internal' => 'Internal')));
+ ->will($this->returnValue(array('internal')));
$object = new Object_Mock($composite, 'guid');
- $this->assertEquals(array('internal' => 'Internal'), $object->getInternalAttributes());
+ $this->assertEquals(array('internal'), $object->getInternalAttributes());
}
public function testMethodExistsHasResultBooleanFalseIfTheGuidIsNotSpecified()
$composite->structure->expects($this->once())
->method('getInternalAttributes')
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
- ->will($this->returnValue(array('internal' => 'Internal')));
+ ->will($this->returnValue(array('internal')));
$composite->server->expects($this->once())
->method('readAttributes')
->with('guid', array('internal'))
$composite->structure->expects($this->once())
->method('getInternalAttributes')
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
- ->will($this->returnValue(array('internal' => 'Internal')));
+ ->will($this->returnValue(array('internal')));
$composite->server->expects($this->once())
->method('readAttributes')
->with('guid', array('internal'))
$composite->structure->expects($this->once())
->method('getInternalAttributes')
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
- ->will($this->returnValue(array('internal' => 'Internal')));
+ ->will($this->returnValue(array('internal')));
$composite->server->expects($this->once())
->method('readAttributes')
->with('guid', array('internal'))
$composite->structure->expects($this->exactly(1))
->method('getInternalAttributes')
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
- ->will($this->returnValue(array('internal' => 'Internal')));
+ ->will($this->returnValue(array('internal')));
$composite->server->expects($this->once())
->method('readAttributes')
->with('guid', array('internal'))
$composite->structure->expects($this->once())
->method('getInternalAttributes')
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
- ->will($this->returnValue(array('internal' => 'Internal')));
+ ->will($this->returnValue(array('internal')));
$object = new Object_Mock($composite, 'guid');
try {
$object->getInternal(array('test'));
->with($this->isInstanceOf('Horde_Kolab_Server_Object_Interface'))
->will(
$this->returnValue(
- array('internal' => 'Internal', 'test' => 'Test')
+ array('internal', 'test')
)
);
$composite->server->expects($this->once())
->will(
$this->returnValue(
array(
- 'objectClass' =>
- 'Horde_Kolab_Server_Object_Attribute_Objectclass'
+ 'objectClass'
)
)
);