@@ -36,6 +36,19 @@ public function setUp()
36
36
'project_briefing ' => 'Lorem ipsum... ' ,
37
37
'options ' => ['language_level ' => 'premium ' ],
38
38
'textmasters ' => ['55c3763e656462000b000027 ' ],
39
+ 'documents_statuses ' => [
40
+ 'in_creation ' => 0 ,
41
+ 'waiting_assignment ' => 2 ,
42
+ 'in_progress ' => 0 ,
43
+ 'in_review ' => 0 ,
44
+ 'incomplete ' => 0 ,
45
+ 'completed ' => 0 ,
46
+ 'paused ' => 0 ,
47
+ 'canceled ' => 0 ,
48
+ 'quality_control ' => 0 ,
49
+ 'copyscape ' => 0 ,
50
+ 'counting_words ' => 1 ,
51
+ ],
39
52
];
40
53
$ updateValues = [
41
54
'id ' => '123456 ' ,
@@ -167,6 +180,19 @@ public function shouldCreateFromValues()
167
180
$ briefing = 'Lorem ipsum... ' ;
168
181
$ options = ['language_level ' => 'premium ' ];
169
182
$ textmasters = ['55c3763e656462000b000027 ' ];
183
+ $ documentsStatuses = [
184
+ 'in_creation ' => 0 ,
185
+ 'waiting_assignment ' => 2 ,
186
+ 'in_progress ' => 0 ,
187
+ 'in_review ' => 0 ,
188
+ 'incomplete ' => 0 ,
189
+ 'completed ' => 0 ,
190
+ 'paused ' => 0 ,
191
+ 'canceled ' => 0 ,
192
+ 'quality_control ' => 0 ,
193
+ 'copyscape ' => 0 ,
194
+ 'counting_words ' => 1 ,
195
+ ];
170
196
171
197
$ values = [
172
198
'id ' => $ id ,
@@ -179,6 +205,7 @@ public function shouldCreateFromValues()
179
205
'project_briefing ' => $ briefing ,
180
206
'options ' => $ options ,
181
207
'textmasters ' => $ textmasters ,
208
+ 'documents_statuses ' => $ documentsStatuses ,
182
209
];
183
210
184
211
$ project = new Project ($ this ->clientMock , $ values );
@@ -193,6 +220,8 @@ public function shouldCreateFromValues()
193
220
$ this ->assertSame ($ briefing , $ project ->getBriefing ());
194
221
$ this ->assertSame ($ options , $ project ->getOptions ());
195
222
$ this ->assertSame ($ textmasters , $ project ->getTextmasters ());
223
+ $ this ->assertEquals (2 , $ project ->getDocumentsStatuses ()[DocumentInterface::STATUS_WAITING_ASSIGNMENT ]);
224
+ $ this ->assertEquals (1 , $ project ->getDocumentsStatuses ()[DocumentInterface::STATUS_COUNTING_WORDS ]);
196
225
}
197
226
198
227
/**
0 commit comments