private function assertRatingError($hasError = true)
 {
     $data = $this->controller->rate()->getValue();
     $this->assertTrue(!empty($data['errors']) == $hasError);
 }