mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 02:11:45 +01:00
MissingParticipantOfSurveyException - fix message
This commit is contained in:
@@ -25,7 +25,7 @@ class MissingParticipantOfSurveyException extends \Exception
|
|||||||
public function __construct($surveyId, $email)
|
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?';
|
$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);
|
parent::__construct($message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ class MissingParticipantOfSurveyExceptionTest extends BaseTestCase
|
|||||||
yield[
|
yield[
|
||||||
1,
|
1,
|
||||||
'lorem@ipsum.com',
|
'lorem@ipsum.com',
|
||||||
sprintf($template, 1, 'lorem@ipsum.com'),
|
sprintf($template, 'lorem@ipsum.com', 1),
|
||||||
];
|
];
|
||||||
|
|
||||||
yield[
|
yield[
|
||||||
1234,
|
1234,
|
||||||
'another@email.comm',
|
'another@email.comm',
|
||||||
sprintf($template, 1234, 'another@email.comm'),
|
sprintf($template, 'another@email.comm', 1234),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user