File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -936,6 +936,11 @@ public function testNewSubmission_conditionalQuestion() {
936936 return true ;
937937 }));
938938
939+ $ this ->submissionService ->expects ($ this ->once ())
940+ ->method ('getActiveBranch ' )
941+ ->with ($ questions [0 ], $ answers [100 ]['trigger ' ])
942+ ->willReturn ($ questions [0 ]['extraSettings ' ]['branches ' ][0 ]);
943+
939944 // Trigger answer + subquestion answer = 2 inserts
940945 $ this ->answerMapper ->expects ($ this ->exactly (2 ))
941946 ->method ('insert ' );
Original file line number Diff line number Diff line change @@ -1461,7 +1461,7 @@ public static function dataValidateSubmission() {
14611461 ]
14621462 ],
14631463 // Expected Result
1464- 'Subquestion "Sub Q1" in conditional question "Conditional Q " is required. ' ,
1464+ 'Question "Sub Q1" is required. ' ,
14651465 ],
14661466 'valid-conditional-linearscale-trigger ' => [
14671467 // Questions - conditional with linearscale trigger
You can’t perform that action at this time.
0 commit comments