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

pull/38137/head
John Molakvoæ 3 years ago committed by GitHub
commit 14a468f326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      apps/user_status/lib/Controller/UserStatusController.php
  2. 9
      apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php

@ -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…
Cancel
Save