From d181c5bf743bd3125610b7025e178a8ed26e121a Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Tue, 25 Aug 2020 22:34:53 +0200
Subject: [PATCH] Remove useless test-code

---
 tests/modules/cron/lib/Controller/CronTest.php | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/tests/modules/cron/lib/Controller/CronTest.php b/tests/modules/cron/lib/Controller/CronTest.php
index 7dbec65f5..687d35f72 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());
     }
-- 
GitLab