Skip to content
Snippets Groups Projects
Commit d181c5bf authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Remove useless test-code

parent 9792628f
No related branches found
No related tags found
No related merge requests found
...@@ -79,14 +79,10 @@ class CronTest extends TestCase ...@@ -79,14 +79,10 @@ class CronTest extends TestCase
public function testInfo(): void public function testInfo(): void
{ {
$_SERVER['REQUEST_URI'] = '/module.php/cron/info'; $_SERVER['REQUEST_URI'] = '/module.php/cron/info';
$request = Request::create(
'/info',
'GET'
);
$c = new Controller\Cron($this->config, $this->session); $c = new Controller\Cron($this->config, $this->session);
$c->setAuthUtils($this->authUtils); $c->setAuthUtils($this->authUtils);
$response = $c->info($request); $response = $c->info();
$this->assertTrue($response->isSuccessful()); $this->assertTrue($response->isSuccessful());
} }
...@@ -98,13 +94,9 @@ class CronTest extends TestCase ...@@ -98,13 +94,9 @@ class CronTest extends TestCase
public function testRun(): void public function testRun(): void
{ {
$_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/secret'; $_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/secret';
$request = Request::create(
'/run/daily/secret',
'GET'
);
$c = new Controller\Cron($this->config, $this->session); $c = new Controller\Cron($this->config, $this->session);
$response = $c->run($request, 'daily', 'secret'); $response = $c->run('daily', 'secret');
$this->assertTrue($response->isSuccessful()); $this->assertTrue($response->isSuccessful());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment