|  | @@ 127-136 (lines=10) @@ | 
                                                            
                                    | 124 |  | 		$this->assertEquals($expectedResponse, $response); | 
                                                            
                                    | 125 |  | 	} | 
                                                            
                                    | 126 |  |  | 
                                                            
                                    | 127 |  | 	public function testDestroy() { | 
                                                            
                                    | 128 |  | 		$this->accountService->expects($this->once()) | 
                                                            
                                    | 129 |  | 			->method('delete') | 
                                                            
                                    | 130 |  | 			->with($this->equalTo($this->userId), $this->equalTo($this->accountId)); | 
                                                            
                                    | 131 |  |  | 
                                                            
                                    | 132 |  | 		$response = $this->controller->destroy($this->accountId); | 
                                                            
                                    | 133 |  |  | 
                                                            
                                    | 134 |  | 		$expectedResponse = new JSONResponse(); | 
                                                            
                                    | 135 |  | 		$this->assertEquals($expectedResponse, $response); | 
                                                            
                                    | 136 |  | 	} | 
                                                            
                                    | 137 |  |  | 
                                                            
                                    | 138 |  | 	public function testDestroyDoesNotExist() { | 
                                                            
                                    | 139 |  | 		$this->accountService->expects($this->once()) | 
                                                                                
                                |  | @@ 138-148 (lines=11) @@ | 
                                                            
                                    | 135 |  | 		$this->assertEquals($expectedResponse, $response); | 
                                                            
                                    | 136 |  | 	} | 
                                                            
                                    | 137 |  |  | 
                                                            
                                    | 138 |  | 	public function testDestroyDoesNotExist() { | 
                                                            
                                    | 139 |  | 		$this->accountService->expects($this->once()) | 
                                                            
                                    | 140 |  | 			->method('delete') | 
                                                            
                                    | 141 |  | 			->with($this->equalTo($this->userId), $this->equalTo($this->accountId)) | 
                                                            
                                    | 142 |  | 			->will($this->throwException(new \OCP\AppFramework\Db\DoesNotExistException('test'))); | 
                                                            
                                    | 143 |  |  | 
                                                            
                                    | 144 |  | 		$response = $this->controller->destroy($this->accountId); | 
                                                            
                                    | 145 |  |  | 
                                                            
                                    | 146 |  | 		$expectedResponse = new JSONResponse(); | 
                                                            
                                    | 147 |  | 		$this->assertEquals($expectedResponse, $response); | 
                                                            
                                    | 148 |  | 	} | 
                                                            
                                    | 149 |  |  | 
                                                            
                                    | 150 |  | 	public function testCreateAutoDetectSuccess() { | 
                                                            
                                    | 151 |  | 		$email = '[email protected]'; |