From a688c73db0f0ac6b9432706f0497d483e3aca69b Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Mon, 4 Nov 2013 12:02:09 +0100 Subject: [PATCH] SOAP tests: properly initialize new project attributes status and view_state must be passed as array otherwise default values are assigned. --- tests/soap/ProjectTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/soap/ProjectTest.php b/tests/soap/ProjectTest.php index 2b76a801bd..9ed5117cab 100644 --- a/tests/soap/ProjectTest.php +++ b/tests/soap/ProjectTest.php @@ -119,8 +119,8 @@ public function testGetSubprojects() { private function newProjectAsArray($projectName) { $projectDataStructure = array(); $projectDataStructure['name'] = $projectName; - $projectDataStructure['status'] = "development"; - $projectDataStructure['view_state'] = 10; + $projectDataStructure['status'] = array( 'name' => 'development' ); + $projectDataStructure['view_state'] = array( 'id' => VS_PUBLIC ); return $projectDataStructure; }