Merge pull request #38099 from nextcloud/fix/missing-clear-status-route

This commit is contained in:
John Molakvoæ 2023-05-09 08:24:01 +02:00 committed by GitHub
commit 14a468f326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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')