Skip to content

Commit 14a468f

Browse files
authored
Merge pull request #38099 from nextcloud/fix/missing-clear-status-route
2 parents 1584051 + e6e2b87 commit 14a468f

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

apps/user_status/lib/Controller/UserStatusController.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,6 @@ public function setCustomMessage(?string $statusIcon,
164164
}
165165
}
166166

167-
/**
168-
* @NoAdminRequired
169-
*
170-
* @return DataResponse
171-
*/
172-
public function clearStatus(): DataResponse {
173-
$this->service->clearStatus($this->userId);
174-
return new DataResponse([]);
175-
}
176-
177167
/**
178168
* @NoAdminRequired
179169
*

apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,15 +326,6 @@ public function setCustomMessageDataProvider(): array {
326326
];
327327
}
328328

329-
public function testClearStatus(): void {
330-
$this->service->expects($this->once())
331-
->method('clearStatus')
332-
->with('john.doe');
333-
334-
$response = $this->controller->clearStatus();
335-
$this->assertEquals([], $response->getData());
336-
}
337-
338329
public function testClearMessage(): void {
339330
$this->service->expects($this->once())
340331
->method('clearMessage')

0 commit comments

Comments
 (0)