mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #38099 from nextcloud/fix/missing-clear-status-route
This commit is contained in:
commit
14a468f326
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