public function testUpdateHowAreYouFeelingReturns200() { $this->entityManager->shouldReceive('updateFeeling')->withAnyArgs()->andReturn(ReturnValues::getFeelingResultEntity()); $return = $this->instance->updateHowAreYouFeeling(1, $this->paramFetcher); $this->assertEquals(RestfulService::STATUS_OK, $return->getStatusCode()); $this->assertEquals(ReturnValues::getFeelingResultEntity(), $return->getData()); }