Adapt testing to new log entry in the decorator.
authorGunnar Wrobel <p@rdus.de>
Tue, 16 Mar 2010 19:18:55 +0000 (20:18 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Tue, 16 Mar 2010 19:31:02 +0000 (20:31 +0100)
framework/Kolab_Server/test/Horde/Kolab/Server/Class/Server/Decorator/LogTest.php

index 318b932..127cc15 100644 (file)
@@ -91,8 +91,11 @@ class Horde_Kolab_Server_Class_Server_Decorator_LogTest extends PHPUnit_Framewor
     {
         $result = $this->getMock('Horde_Kolab_Server_Result_Interface');
         $query = $this->getMock(
-            'Horde_Kolab_Server_Query_Element_Interface', array(), array(), '', false
+            'Horde_Kolab_Server_Query_Ldap', array(), array(), '', false, false
         );
+        $query->expects($this->once())
+            ->method('__toString')
+            ->will($this->returnValue('filter'));
         $this->server->expects($this->exactly(1))
             ->method('find')
             ->with($query)