Base class for one item - add class constructor & allow to set values directly in the constructor

This commit is contained in:
Meritoo
2017-09-29 20:56:39 +02:00
parent bbd466610c
commit 6159731768
17 changed files with 190 additions and 84 deletions

View File

@@ -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',