/**
  * Make sure the request has an error with the given error code
  * and error message.
  *
  * @param          $errorCode
  * @param          $errorMessage
  */
 public function hasError($errorCode, $errorMessage)
 {
     $this->assertSame($errorCode, $this->response->getErrorCode());
     $this->assertContains($errorMessage, $this->response->getMessage());
     $this->assertNotNull($this->response->getErrors());
 }