|  | @@ 130-141 (lines=12) @@ | 
                                                            
                                    | 127 |  |         ); | 
                                                            
                                    | 128 |  |     } | 
                                                            
                                    | 129 |  |  | 
                                                            
                                    | 130 |  |     public function testFinished() | 
                                                            
                                    | 131 |  |     { | 
                                                            
                                    | 132 |  |         $form = $this->setupFormFrontend(); | 
                                                            
                                    | 133 |  |  | 
                                                            
                                    | 134 |  |         // set formProcessed and SecurityID to replicate the form being filled out | 
                                                            
                                    | 135 |  |         $this->session()->set('SecurityID', 1); | 
                                                            
                                    | 136 |  |         $this->session()->set('FormProcessed', 1); | 
                                                            
                                    | 137 |  |  | 
                                                            
                                    | 138 |  |         $response = $this->get($form->URLSegment.'/finished'); | 
                                                            
                                    | 139 |  |  | 
                                                            
                                    | 140 |  |         $this->assertContains($form->OnCompleteMessage, $response->getBody()); | 
                                                            
                                    | 141 |  |     } | 
                                                            
                                    | 142 |  |  | 
                                                            
                                    | 143 |  |     public function testAppendingFinished() | 
                                                            
                                    | 144 |  |     { | 
                                                                                
                                |  | @@ 143-154 (lines=12) @@ | 
                                                            
                                    | 140 |  |         $this->assertContains($form->OnCompleteMessage, $response->getBody()); | 
                                                            
                                    | 141 |  |     } | 
                                                            
                                    | 142 |  |  | 
                                                            
                                    | 143 |  |     public function testAppendingFinished() | 
                                                            
                                    | 144 |  |     { | 
                                                            
                                    | 145 |  |         $form = $this->setupFormFrontend(); | 
                                                            
                                    | 146 |  |  | 
                                                            
                                    | 147 |  |         // replicate finished being added to the end of the form URL without the form being filled out | 
                                                            
                                    | 148 |  |         $this->session()->set('SecurityID', 1); | 
                                                            
                                    | 149 |  |         $this->session()->set('FormProcessed', null); | 
                                                            
                                    | 150 |  |  | 
                                                            
                                    | 151 |  |         $response = $this->get($form->URLSegment.'/finished'); | 
                                                            
                                    | 152 |  |  | 
                                                            
                                    | 153 |  |         $this->assertNotContains($form->OnCompleteMessage, $response->getBody()); | 
                                                            
                                    | 154 |  |     } | 
                                                            
                                    | 155 |  |  | 
                                                            
                                    | 156 |  |     public function testForm() | 
                                                            
                                    | 157 |  |     { |