summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-04 14:50:53 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-04 14:50:53 +0100
commit23351fa0966353c5b47ca7b2cc917555b804ee8d (patch)
treefa9df4bb455b584baa9303d09427a19d8157343e /tests
parent20511d31738ac83acde20aeea94bab8bb7e83f43 (diff)
Remove unused method
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/spreedcheats/appinfo/routes.php1
-rw-r--r--tests/integration/spreedcheats/lib/Controller/ApiController.php20
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/integration/spreedcheats/appinfo/routes.php b/tests/integration/spreedcheats/appinfo/routes.php
index 57798148f..7798d929f 100644
--- a/tests/integration/spreedcheats/appinfo/routes.php
+++ b/tests/integration/spreedcheats/appinfo/routes.php
@@ -26,6 +26,5 @@ declare(strict_types=1);
return [
'ocs' => [
['name' => 'Api#resetSpreed', 'url' => '/', 'verb' => 'DELETE'],
- ['name' => 'Api#getMessageExpirationJob', 'url' => '/get_message_expiration_job', 'verb' => 'GET'],
],
];
diff --git a/tests/integration/spreedcheats/lib/Controller/ApiController.php b/tests/integration/spreedcheats/lib/Controller/ApiController.php
index 34f7b0d7f..a53234bee 100644
--- a/tests/integration/spreedcheats/lib/Controller/ApiController.php
+++ b/tests/integration/spreedcheats/lib/Controller/ApiController.php
@@ -103,24 +103,4 @@ class ApiController extends OCSController {
return new DataResponse();
}
-
- /**
- * @NoCSRFRequired
- *
- * @return DataResponse
- */
- public function getMessageExpirationJob(): DataResponse {
- $query = $this->db->getQueryBuilder();
- $query->select('id')
- ->from('jobs')
- ->where(
- $query->expr()->eq('class', $query->createNamedParameter(ExpireChatMessages::class))
- );
- $result = $query->executeQuery();
- $job = $result->fetchOne();
- if ($job) {
- return new DataResponse(['id' => (int) $job]);
- }
- return new DataResponse([], Http::STATUS_NOT_FOUND);
- }
}