mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 10:11:49 +01:00
Base class for one item - add class constructor & allow to set values directly in the constructor
This commit is contained in:
@@ -297,13 +297,13 @@ class ParticipantServiceTest extends BaseTestCase
|
||||
|
||||
$allParticipants = new Participants([
|
||||
1 => new Collection([
|
||||
(new Participant())->setValues([
|
||||
new Participant([
|
||||
'firstname' => 'John',
|
||||
'lastname' => 'Scott',
|
||||
'email' => 'john@scott.com',
|
||||
'completed' => 'Y',
|
||||
]),
|
||||
(new Participant())->setValues([
|
||||
new Participant([
|
||||
'firstname' => 'Mary',
|
||||
'lastname' => 'Jane',
|
||||
'email' => 'mary@jane.com',
|
||||
|
||||
@@ -204,11 +204,11 @@ class SurveyServiceTest extends BaseTestCase
|
||||
$client = new Client($configuration, $rpcClientManager, $sessionManager);
|
||||
|
||||
$allSurveys = new Collection([
|
||||
(new Survey())->setValues([
|
||||
new Survey([
|
||||
'sid' => 1,
|
||||
'surveyls_title' => 'Test',
|
||||
]),
|
||||
(new Survey())->setValues([
|
||||
new Survey([
|
||||
'sid' => 2,
|
||||
'surveyls_title' => 'Another Test',
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user