From 79d887cc9b2d32ba155d6fefcd1a7c40c0a7fc94 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 4 Dec 2009 12:48:37 +0000 Subject: fixes #1397 and updates unit tests - comma was missing git-svn-id: http://code.elgg.org/elgg/trunk@3724 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/tests/services/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/tests') diff --git a/engine/tests/services/api.php b/engine/tests/services/api.php index 2acda5823..b9dfda8f5 100644 --- a/engine/tests/services/api.php +++ b/engine/tests/services/api.php @@ -264,19 +264,19 @@ class ElggCoreServicesApiTest extends ElggCoreUnitTest { $this->registerFunction(false, false, array('param1' => array('type' => 'array'))); $parameters = array('param1' => array('one', 'two')); $s = serialise_parameters('test', $parameters); - $this->assertIdentical($s, "array('0'=>'one','1'=>'two')"); + $this->assertIdentical($s, ",array('0'=>'one','1'=>'two')"); // associative array of strings $this->registerFunction(false, false, array('param1' => array('type' => 'array'))); $parameters = array('param1' => array('first' => 'one', 'second' => 'two')); $s = serialise_parameters('test', $parameters); - $this->assertIdentical($s, "array('first'=>'one','second'=>'two')"); + $this->assertIdentical($s, ",array('first'=>'one','second'=>'two')"); // indexed array of strings $this->registerFunction(false, false, array('param1' => array('type' => 'array'))); $parameters = array('param1' => array(1, 2)); $s = serialise_parameters('test', $parameters); - $this->assertIdentical($s, "array('0'=>'1','1'=>'2')"); + $this->assertIdentical($s, ",array('0'=>'1','1'=>'2')"); // test unknown type $this->registerFunction(false, false, array('param1' => array('type' => 'bad'))); -- cgit v1.2.3