mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 10:11:49 +01:00
MissingParticipantOfSurveyException - fix message
This commit is contained in:
@@ -25,7 +25,7 @@ class MissingParticipantOfSurveyException extends \Exception
|
||||
public function __construct($surveyId, $email)
|
||||
{
|
||||
$template = 'Participant with e-mail %s of survey with ID %s is missing. Maybe was not added to the survey?';
|
||||
$message = sprintf($template, $surveyId, $email);
|
||||
$message = sprintf($template, $email, $surveyId);
|
||||
|
||||
parent::__construct($message);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ class MissingParticipantOfSurveyExceptionTest extends BaseTestCase
|
||||
yield[
|
||||
1,
|
||||
'lorem@ipsum.com',
|
||||
sprintf($template, 1, 'lorem@ipsum.com'),
|
||||
sprintf($template, 'lorem@ipsum.com', 1),
|
||||
];
|
||||
|
||||
yield[
|
||||
1234,
|
||||
'another@email.comm',
|
||||
sprintf($template, 1234, 'another@email.comm'),
|
||||
sprintf($template, 'another@email.comm', 1234),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user