Skip to content

Commit

Permalink
SOAP tests: properly initialize new project attributes
Browse files Browse the repository at this point in the history
status and view_state must be passed as array otherwise default values
are assigned.
  • Loading branch information
dregad committed Feb 4, 2014
1 parent 751b82f commit a688c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/soap/ProjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a688c73

Please sign in to comment.