mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 02:11:45 +01:00
Base class for one item - add class constructor & allow to set values directly in the constructor
This commit is contained in:
@@ -125,9 +125,8 @@ class ParticipantsTest extends BaseTestCase
|
||||
{
|
||||
$surveyId = 1;
|
||||
$email = 'john@scott.com';
|
||||
$participant = new Participant();
|
||||
|
||||
$participant->setValues([
|
||||
$participant = new Participant([
|
||||
'firstname' => 'John',
|
||||
'lastname' => 'Scott',
|
||||
'email' => $email,
|
||||
@@ -148,9 +147,8 @@ class ParticipantsTest extends BaseTestCase
|
||||
{
|
||||
$surveyId = 1;
|
||||
$email = 'john@scott.com';
|
||||
$participant = new Participant();
|
||||
|
||||
$participant->setValues([
|
||||
$participant = new Participant([
|
||||
'firstname' => 'John',
|
||||
'lastname' => 'Scott',
|
||||
'email' => $email,
|
||||
|
||||
Reference in New Issue
Block a user