File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1058,6 +1058,11 @@ public function testGetSubmission_success() {
10581058 ->with (1 , Constants::PERMISSION_RESULTS )
10591059 ->willReturn ($ form );
10601060
1061+ $ this ->formsService ->expects ($ this ->once ())
1062+ ->method ('getPermissions ' )
1063+ ->with ($ form )
1064+ ->willReturn ([Constants::PERMISSION_RESULTS ]);
1065+
10611066 $ this ->submissionService ->expects ($ this ->once ()) // Changed from submissionMapper
10621067 ->method ('getSubmission ' )
10631068 ->with (42 )
@@ -1121,6 +1126,11 @@ public function testGetSubmission_anonymousUser() {
11211126 ->with (1 , Constants::PERMISSION_RESULTS )
11221127 ->willReturn ($ form );
11231128
1129+ $ this ->formsService ->expects ($ this ->once ())
1130+ ->method ('getPermissions ' )
1131+ ->with ($ form )
1132+ ->willReturn ([Constants::PERMISSION_RESULTS ]);
1133+
11241134 $ this ->submissionService ->expects ($ this ->once ()) // Changed from submissionMapper
11251135 ->method ('getSubmission ' )
11261136 ->with (42 )
@@ -1154,6 +1164,11 @@ public function testGetSubmission_userNotFound() {
11541164 ->with (1 , Constants::PERMISSION_RESULTS )
11551165 ->willReturn ($ form );
11561166
1167+ $ this ->formsService ->expects ($ this ->once ())
1168+ ->method ('getPermissions ' )
1169+ ->with ($ form )
1170+ ->willReturn ([Constants::PERMISSION_RESULTS ]);
1171+
11571172 $ this ->submissionService ->expects ($ this ->once ()) // Changed from submissionMapper
11581173 ->method ('getSubmission ' )
11591174 ->with (42 )
You can’t perform that action at this time.
0 commit comments