Skip to content

Commit

Permalink
Remove unreachable UserStatus#clearStatus route
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <jld3103yt@gmail.com>
  • Loading branch information
provokateurin committed May 8, 2023
1 parent 598859d commit e6e2b87
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 e6e2b87

Please sign in to comment.