From 99eff9ebc51595a50e87ee74fc1bf38bca8c5923 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Tue, 16 Mar 2010 20:18:55 +0100 Subject: [PATCH] Adapt testing to new log entry in the decorator. --- .../test/Horde/Kolab/Server/Class/Server/Decorator/LogTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/Kolab_Server/test/Horde/Kolab/Server/Class/Server/Decorator/LogTest.php b/framework/Kolab_Server/test/Horde/Kolab/Server/Class/Server/Decorator/LogTest.php index 318b932fa..127cc15d9 100644 --- a/framework/Kolab_Server/test/Horde/Kolab/Server/Class/Server/Decorator/LogTest.php +++ b/framework/Kolab_Server/test/Horde/Kolab/Server/Class/Server/Decorator/LogTest.php @@ -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) -- 2.11.0