|  | @@ 29-48 (lines=20) @@ | 
                                                            
                                    | 26 |  |             ->count()); | 
                                                            
                                    | 27 |  |     } | 
                                                            
                                    | 28 |  |  | 
                                                            
                                    | 29 |  |     public function testSurveyCreate() | 
                                                            
                                    | 30 |  |     { | 
                                                            
                                    | 31 |  |         $client = static::createClient(); | 
                                                            
                                    | 32 |  |  | 
                                                            
                                    | 33 |  |         $crawler = $client->request('GET', '/surveys/create/internship', array(), array(), array( | 
                                                            
                                    | 34 |  |             'PHP_AUTH_USER' => '[email protected]', | 
                                                            
                                    | 35 |  |             'PHP_AUTH_PW' => 'admin', | 
                                                            
                                    | 36 |  |         )); | 
                                                            
                                    | 37 |  |  | 
                                                            
                                    | 38 |  |         $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 
                                                            
                                    | 39 |  |  | 
                                                            
                                    | 40 |  |         $form = $crawler->selectButton('Create survey')->form(); | 
                                                            
                                    | 41 |  |  | 
                                                            
                                    | 42 |  |         $form['survey[user]']->select('2'); | 
                                                            
                                    | 43 |  |  | 
                                                            
                                    | 44 |  |         $client->followRedirects(); | 
                                                            
                                    | 45 |  |         $client->submit($form); | 
                                                            
                                    | 46 |  |  | 
                                                            
                                    | 47 |  |         $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 
                                                            
                                    | 48 |  |     } | 
                                                            
                                    | 49 |  |  | 
                                                            
                                    | 50 |  |     public function testSurveyDelete() | 
                                                            
                                    | 51 |  |     { | 
                                                                                
                                |  | @@ 50-68 (lines=19) @@ | 
                                                            
                                    | 47 |  |         $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 
                                                            
                                    | 48 |  |     } | 
                                                            
                                    | 49 |  |  | 
                                                            
                                    | 50 |  |     public function testSurveyDelete() | 
                                                            
                                    | 51 |  |     { | 
                                                            
                                    | 52 |  |         $client = static::createClient(); | 
                                                            
                                    | 53 |  |  | 
                                                            
                                    | 54 |  |         $crawler = $client->request('GET', '/surveys/delete/1', array(), array(), array( | 
                                                            
                                    | 55 |  |             'PHP_AUTH_USER' => '[email protected]', | 
                                                            
                                    | 56 |  |             'PHP_AUTH_PW' => 'admin', | 
                                                            
                                    | 57 |  |         )); | 
                                                            
                                    | 58 |  |  | 
                                                            
                                    | 59 |  |         $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 
                                                            
                                    | 60 |  |  | 
                                                            
                                    | 61 |  |         $form = $crawler->selectButton('Delete survey')->form(); | 
                                                            
                                    | 62 |  |  | 
                                                            
                                    | 63 |  |         $client->followRedirects(); | 
                                                            
                                    | 64 |  |         $client->submit($form); | 
                                                            
                                    | 65 |  |  | 
                                                            
                                    | 66 |  |         $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 
                                                            
                                    | 67 |  |         exec('./bin/console d:d:d --force --env=test'); | 
                                                            
                                    | 68 |  |     } | 
                                                            
                                    | 69 |  | } | 
                                                            
                                    | 70 |  |  |