Remove unreachable UserStatus#clearStatus route

Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
jld3103 2023-05-05 14:18:56 +02:00
parent 598859d969
commit e6e2b873a3
No known key found for this signature in database
GPG key ID: 9062417B9E8EB7B3
2 changed files with 0 additions and 19 deletions

View file

@ -164,16 +164,6 @@ class UserStatusController extends OCSController {
}
}
/**
* @NoAdminRequired
*
* @return DataResponse
*/
public function clearStatus(): DataResponse {
$this->service->clearStatus($this->userId);
return new DataResponse([]);
}
/**
* @NoAdminRequired
*

View file

@ -326,15 +326,6 @@ class UserStatusControllerTest extends TestCase {
];
}
public function testClearStatus(): void {
$this->service->expects($this->once())
->method('clearStatus')
->with('john.doe');
$response = $this->controller->clearStatus();
$this->assertEquals([], $response->getData());
}
public function testClearMessage(): void {
$this->service->expects($this->once())
->method('clearMessage')