mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove unreachable UserStatus#clearStatus route
Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
parent
598859d969
commit
e6e2b873a3
2 changed files with 0 additions and 19 deletions
|
|
@ -164,16 +164,6 @@ class UserStatusController extends OCSController {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*
|
||||
* @return DataResponse
|
||||
*/
|
||||
public function clearStatus(): DataResponse {
|
||||
$this->service->clearStatus($this->userId);
|
||||
return new DataResponse([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue