summaryrefslogtreecommitdiffstats
path: root/apps/user_status
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-05-09 08:24:01 +0200
committerGitHub <noreply@github.com>2023-05-09 08:24:01 +0200
commit14a468f326a105c288f105492a7221fc2e27d3e2 (patch)
tree877778ec685b44c3292b57d10d8f301f8a3ec212 /apps/user_status
parent158405127b83e1881dedcf4da9989b83aca4ce10 (diff)
parente6e2b873a396764065b99a963af0ec6eb6d37a95 (diff)
downloadnextcloud-server-14a468f326a105c288f105492a7221fc2e27d3e2.tar.gz
nextcloud-server-14a468f326a105c288f105492a7221fc2e27d3e2.zip
Merge pull request #38099 from nextcloud/fix/missing-clear-status-route
Diffstat (limited to 'apps/user_status')
-rw-r--r--apps/user_status/lib/Controller/UserStatusController.php10
-rw-r--r--apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php9
2 files changed, 0 insertions, 19 deletions
diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php
index aded923d07f..2d96cd90a40 100644
--- a/apps/user_status/lib/Controller/UserStatusController.php
+++ b/apps/user_status/lib/Controller/UserStatusController.php
@@ -169,16 +169,6 @@ class UserStatusController extends OCSController {
*
* @return DataResponse
*/
- public function clearStatus(): DataResponse {
- $this->service->clearStatus($this->userId);
- return new DataResponse([]);
- }
-
- /**
- * @NoAdminRequired
- *
- * @return DataResponse
- */
public function clearMessage(): DataResponse {
$this->service->clearMessage($this->userId);
return new DataResponse([]);
diff --git a/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php b/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
index e4d2ab61eee..ed0919eb9a5 100644
--- a/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
+++ b/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
@@ -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')