public function testVoteDown_NoVote_NoChange()
 {
     $e = new UserVoteTestEnvironment();
     $e->create();
     $dto = $e->addAnswer('Some answer');
     //         var_dump($dto, $e->answerId);
     $answer0 = $dto[$e->answerId];
     $this->assertEqual(0, $answer0['score']);
     $dto = QuestionCommands::voteDown($e->userId, $e->projectId, $e->questionId, $e->answerId);
     //          var_dump($dto, $e->answerId);
     $this->assertIsA($dto, 'array');
     $answer1 = $dto[$e->answerId];
     $this->assertEqual(0, $answer1['score']);
 }
 public function testVoteDown_NoVote_NoChange()
 {
     $environ = new UserVoteTestEnvironment();
     $environ->create();
     $dto = $environ->addAnswer('Some answer');
     $answer0 = $dto[$environ->answerId];
     $this->assertEquals(0, $answer0['score']);
     $dto = QuestionCommands::voteDown($environ->userId, $environ->projectId, $environ->questionId, $environ->answerId);
     $this->assertInternalType('array', $dto);
     $answer1 = $dto[$environ->answerId];
     $this->assertEquals(0, $answer1['score']);
 }