summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-12-16 22:30:19 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-12-17 10:35:23 +0100
commit11f5904dd58cbcb45e0e3e6c466f187e30323155 (patch)
tree17e7cd35948b161a0e567dec94bb9aecbe64d895 /tests/Unit/Controller
parent7bebaab86e2676466eb9d104ec1a57cd9634c0b4 (diff)
Fix mapper->find and empty user sessions
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Controller')
-rw-r--r--tests/Unit/Controller/AdminControllerTest.php2
-rw-r--r--tests/Unit/Controller/ExportControllerTest.php1
-rw-r--r--tests/Unit/Controller/FeedApiControllerTest.php1
-rw-r--r--tests/Unit/Controller/FeedControllerTest.php1
-rw-r--r--tests/Unit/Controller/FolderApiControllerTest.php1
-rw-r--r--tests/Unit/Controller/FolderControllerTest.php1
-rw-r--r--tests/Unit/Controller/ItemApiControllerTest.php1
-rw-r--r--tests/Unit/Controller/ItemControllerTest.php1
-rw-r--r--tests/Unit/Controller/PageControllerTest.php1
-rw-r--r--tests/Unit/Controller/UserApiControllerTest.php3
-rw-r--r--tests/Unit/Controller/UtilityApiControllerTest.php1
11 files changed, 3 insertions, 11 deletions
diff --git a/tests/Unit/Controller/AdminControllerTest.php b/tests/Unit/Controller/AdminControllerTest.php
index 81490bb6f..a9d7bb127 100644
--- a/tests/Unit/Controller/AdminControllerTest.php
+++ b/tests/Unit/Controller/AdminControllerTest.php
@@ -62,7 +62,7 @@ class AdminControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
- $this->controller = new AdminController($this->appName, $this->request, $this->config, $this->itemService);
+ $this->controller = new AdminController($this->request, $this->config, $this->itemService);
}
/**
diff --git a/tests/Unit/Controller/ExportControllerTest.php b/tests/Unit/Controller/ExportControllerTest.php
index 276a36abf..1565daf81 100644
--- a/tests/Unit/Controller/ExportControllerTest.php
+++ b/tests/Unit/Controller/ExportControllerTest.php
@@ -86,7 +86,6 @@ class ExportControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->controller = new ExportController(
- $appName,
$request,
$this->folderService,
$this->feedService,
diff --git a/tests/Unit/Controller/FeedApiControllerTest.php b/tests/Unit/Controller/FeedApiControllerTest.php
index 0ed65f5c5..9cfc47cec 100644
--- a/tests/Unit/Controller/FeedApiControllerTest.php
+++ b/tests/Unit/Controller/FeedApiControllerTest.php
@@ -91,7 +91,6 @@ class FeedApiControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->class = new FeedApiController(
- $appName,
$request,
$userSession,
$this->oldFeedService,
diff --git a/tests/Unit/Controller/FeedControllerTest.php b/tests/Unit/Controller/FeedControllerTest.php
index 6285be9dc..aba8cdc1f 100644
--- a/tests/Unit/Controller/FeedControllerTest.php
+++ b/tests/Unit/Controller/FeedControllerTest.php
@@ -106,7 +106,6 @@ class FeedControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->class = new FeedController(
- $this->appName,
$request,
$this->folderService,
$this->feedService,
diff --git a/tests/Unit/Controller/FolderApiControllerTest.php b/tests/Unit/Controller/FolderApiControllerTest.php
index cf66b4c03..858e7ff9e 100644
--- a/tests/Unit/Controller/FolderApiControllerTest.php
+++ b/tests/Unit/Controller/FolderApiControllerTest.php
@@ -66,7 +66,6 @@ class FolderApiControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->folderAPI = new FolderApiController(
- $appName,
$request,
$userSession,
$this->folderService,
diff --git a/tests/Unit/Controller/FolderControllerTest.php b/tests/Unit/Controller/FolderControllerTest.php
index ef1b1e965..522b3a754 100644
--- a/tests/Unit/Controller/FolderControllerTest.php
+++ b/tests/Unit/Controller/FolderControllerTest.php
@@ -79,7 +79,6 @@ class FolderControllerTest extends TestCase
->method('getUser')
->will($this->returnValue($this->user));
$this->class = new FolderController(
- $appName,
$request,
$this->folderService,
$this->feedService,
diff --git a/tests/Unit/Controller/ItemApiControllerTest.php b/tests/Unit/Controller/ItemApiControllerTest.php
index 06b60f78c..8177bb0a2 100644
--- a/tests/Unit/Controller/ItemApiControllerTest.php
+++ b/tests/Unit/Controller/ItemApiControllerTest.php
@@ -66,7 +66,6 @@ class ItemApiControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->class = new ItemApiController(
- $this->appName,
$this->request,
$this->userSession,
$this->oldItemService,
diff --git a/tests/Unit/Controller/ItemControllerTest.php b/tests/Unit/Controller/ItemControllerTest.php
index 9929cde23..12f851ade 100644
--- a/tests/Unit/Controller/ItemControllerTest.php
+++ b/tests/Unit/Controller/ItemControllerTest.php
@@ -80,7 +80,6 @@ class ItemControllerTest extends TestCase
->method('getUser')
->will($this->returnValue($this->user));
$this->controller = new ItemController(
- $this->appName,
$this->request,
$this->feedService,
$this->itemService,
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php
index 0c642fe29..2f259b316 100644
--- a/tests/Unit/Controller/PageControllerTest.php
+++ b/tests/Unit/Controller/PageControllerTest.php
@@ -113,7 +113,6 @@ class PageControllerTest extends TestCase
->method('getUser')
->will($this->returnValue($this->user));
$this->controller = new PageController(
- 'news',
$this->request,
$this->settings,
$this->urlGenerator,
diff --git a/tests/Unit/Controller/UserApiControllerTest.php b/tests/Unit/Controller/UserApiControllerTest.php
index 49010627b..45a59ce4b 100644
--- a/tests/Unit/Controller/UserApiControllerTest.php
+++ b/tests/Unit/Controller/UserApiControllerTest.php
@@ -52,7 +52,8 @@ class UserApiControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->controller = new UserApiController(
- $this->appName, $this->request, $this->userSession,
+ $this->request,
+ $this->userSession,
$this->rootFolder
);
diff --git a/tests/Unit/Controller/UtilityApiControllerTest.php b/tests/Unit/Controller/UtilityApiControllerTest.php
index 127618288..16d583b71 100644
--- a/tests/Unit/Controller/UtilityApiControllerTest.php
+++ b/tests/Unit/Controller/UtilityApiControllerTest.php
@@ -93,7 +93,6 @@ class UtilityApiControllerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->newsAPI = new UtilityApiController(
- $this->appName,
$this->request,
$this->userSession,
$this->updateService,