Skip to content

Commit

Permalink
Merge pull request #38099 from nextcloud/fix/missing-clear-status-route
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored May 9, 2023
2 parents 1584051 + e6e2b87 commit 14a468f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions apps/user_status/lib/Controller/UserStatusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@ public function setCustomMessage(?string $statusIcon,
}
}

/**
* @NoAdminRequired
*
* @return DataResponse
*/
public function clearStatus(): DataResponse {
$this->service->clearStatus($this->userId);
return new DataResponse([]);
}

/**
* @NoAdminRequired
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,6 @@ public function setCustomMessageDataProvider(): array {
];
}

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')
Expand Down

0 comments on commit 14a468f

Please sign in to comment.