diff --git a/tests/modules/cron/lib/Controller/CronTest.php b/tests/modules/cron/lib/Controller/CronTest.php index 7dbec65f5b77d57fc0fc6b89cb470873b61efc39..687d35f72e8752b5a9bea74e0f0cc2e40b3d4bda 100644 --- a/tests/modules/cron/lib/Controller/CronTest.php +++ b/tests/modules/cron/lib/Controller/CronTest.php @@ -79,14 +79,10 @@ class CronTest extends TestCase public function testInfo(): void { $_SERVER['REQUEST_URI'] = '/module.php/cron/info'; - $request = Request::create( - '/info', - 'GET' - ); $c = new Controller\Cron($this->config, $this->session); $c->setAuthUtils($this->authUtils); - $response = $c->info($request); + $response = $c->info(); $this->assertTrue($response->isSuccessful()); } @@ -98,13 +94,9 @@ class CronTest extends TestCase public function testRun(): void { $_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/secret'; - $request = Request::create( - '/run/daily/secret', - 'GET' - ); $c = new Controller\Cron($this->config, $this->session); - $response = $c->run($request, 'daily', 'secret'); + $response = $c->run('daily', 'secret'); $this->assertTrue($response->isSuccessful()); }