@@ -125,25 +125,29 @@ public function shouldCreateProject()
125125 'options ' => [
126126 'language_level ' => 'premium ' ,
127127 ],
128- 'language_from ' => 'en ' ,
129- 'language_to ' => 'fr ' ,
128+ 'language_from ' => 'fr ' ,
129+ 'language_to ' => 'en ' ,
130130 'category ' => 'C021 ' ,
131131 'project_briefing ' => 'This project is only for testing purpose ' ,
132132 'work_template ' => '1_title_2_paragraphs ' ,
133+ 'textmasters ' => [
134+ '55c3763e656462000b000027 '
135+ ],
133136 ];
134137
135138 $ result = $ this ->api ->create ($ params );
136139
137140 $ this ->assertSame ('Created project for functional test ' , $ result ['name ' ]);
138141 $ this ->assertSame (ProjectInterface::ACTIVITY_TRANSLATION , $ result ['ctype ' ]);
139142 $ this ->assertSame ('premium ' , $ result ['options ' ]['language_level ' ]);
140- $ this ->assertSame ('en ' , $ result ['language_from ' ]);
141- $ this ->assertSame ('fr ' , $ result ['language_to ' ]);
143+ $ this ->assertSame ('fr ' , $ result ['language_from ' ]);
144+ $ this ->assertSame ('en ' , $ result ['language_to ' ]);
142145 $ this ->assertSame ('C021 ' , $ result ['category ' ]);
143146 $ this ->assertSame ('This project is only for testing purpose ' , $ result ['project_briefing ' ]);
144147 $ this ->assertSame (ProjectInterface::STATUS_IN_CREATION , $ result ['status ' ]);
145148 $ this ->assertSame ('api ' , $ result ['creation_channel ' ]);
146149 $ this ->assertSame ('1_title_2_paragraphs ' , $ result ['work_template ' ]['name ' ]);
150+ $ this ->assertSame (['55c3763e656462000b000027 ' ], $ result ['textmasters ' ]);
147151
148152 return $ result ['id ' ];
149153 }
@@ -189,8 +193,8 @@ public function shouldUpdateProject($projectId)
189193 $ this ->assertSame (self ::$ testId , $ result ['name ' ]);
190194 $ this ->assertSame (ProjectInterface::ACTIVITY_TRANSLATION , $ result ['ctype ' ]);
191195 $ this ->assertSame ('premium ' , $ result ['options ' ]['language_level ' ]);
192- $ this ->assertSame ('en ' , $ result ['language_from ' ]);
193- $ this ->assertSame ('fr ' , $ result ['language_to ' ]);
196+ $ this ->assertSame ('fr ' , $ result ['language_from ' ]);
197+ $ this ->assertSame ('en ' , $ result ['language_to ' ]);
194198 $ this ->assertSame ('C021 ' , $ result ['category ' ]);
195199 $ this ->assertSame ('This project is only for testing purpose ' , $ result ['project_briefing ' ]);
196200 $ this ->assertSame (ProjectInterface::STATUS_IN_CREATION , $ result ['status ' ]);
@@ -214,8 +218,8 @@ public function shouldShowProject($projectId)
214218 $ this ->assertSame (self ::$ testId , $ result ['name ' ]);
215219 $ this ->assertSame (ProjectInterface::ACTIVITY_TRANSLATION , $ result ['ctype ' ]);
216220 $ this ->assertSame ('premium ' , $ result ['options ' ]['language_level ' ]);
217- $ this ->assertSame ('en ' , $ result ['language_from ' ]);
218- $ this ->assertSame ('fr ' , $ result ['language_to ' ]);
221+ $ this ->assertSame ('fr ' , $ result ['language_from ' ]);
222+ $ this ->assertSame ('en ' , $ result ['language_to ' ]);
219223 $ this ->assertSame ('C021 ' , $ result ['category ' ]);
220224 $ this ->assertSame ('This project is only for testing purpose ' , $ result ['project_briefing ' ]);
221225 $ this ->assertSame (ProjectInterface::STATUS_IN_CREATION , $ result ['status ' ]);
@@ -267,8 +271,8 @@ public function shouldLaunchProject($projectId)
267271 $ this ->assertSame (self ::$ testId , $ result ['name ' ]);
268272 $ this ->assertSame (ProjectInterface::ACTIVITY_TRANSLATION , $ result ['ctype ' ]);
269273 $ this ->assertSame ('premium ' , $ result ['options ' ]['language_level ' ]);
270- $ this ->assertSame ('en ' , $ result ['language_from ' ]);
271- $ this ->assertSame ('fr ' , $ result ['language_to ' ]);
274+ $ this ->assertSame ('fr ' , $ result ['language_from ' ]);
275+ $ this ->assertSame ('en ' , $ result ['language_to ' ]);
272276 $ this ->assertSame ('C021 ' , $ result ['category ' ]);
273277 $ this ->assertSame ('This project is only for testing purpose ' , $ result ['project_briefing ' ]);
274278 $ this ->assertSame (ProjectInterface::STATUS_IN_CREATION , $ result ['status ' ]);
@@ -332,8 +336,8 @@ public function shouldCancelProject($projectId)
332336 $ this ->assertSame (self ::$ testId , $ result ['name ' ]);
333337 $ this ->assertSame (ProjectInterface::ACTIVITY_TRANSLATION , $ result ['ctype ' ]);
334338 $ this ->assertSame ('premium ' , $ result ['options ' ]['language_level ' ]);
335- $ this ->assertSame ('en ' , $ result ['language_from ' ]);
336- $ this ->assertSame ('fr ' , $ result ['language_to ' ]);
339+ $ this ->assertSame ('fr ' , $ result ['language_from ' ]);
340+ $ this ->assertSame ('en ' , $ result ['language_to ' ]);
337341 $ this ->assertSame ('C021 ' , $ result ['category ' ]);
338342 $ this ->assertSame ('This project is only for testing purpose ' , $ result ['project_briefing ' ]);
339343 $ this ->assertSame (ProjectInterface::STATUS_CANCELED , $ result ['status ' ]);
0 commit comments