summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-14 17:20:51 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-15 14:40:48 +0100
commit32401b42f1c5122c4aaa4e868599702c36d3c51d (patch)
treeabe013bcdf0664debc07c839720a658215a9f819 /tests
parent4fbd6023f0339b718ec13975cd996a5f57e6e6c7 (diff)
downloadnextcloud-server-32401b42f1c5122c4aaa4e868599702c36d3c51d.tar.gz
nextcloud-server-32401b42f1c5122c4aaa4e868599702c36d3c51d.zip
Check if app is enabled for user
Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
index 74fc7907fb5..cc7704f4d1a 100644
--- a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
+++ b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
@@ -77,7 +77,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase {
$this->navigationManager,
$this->urlGenerator,
$this->logger,
- 'test',
+ 'files',
$isLoggedIn,
$isAdminUser
);
@@ -91,7 +91,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase {
public function testSetNavigationEntry(){
$this->navigationManager->expects($this->once())
->method('setActiveEntry')
- ->with($this->equalTo('test'));
+ ->with($this->equalTo('files'));
$this->reader->reflect(__CLASS__, __FUNCTION__);
$this->middleware->beforeController(__CLASS__, __FUNCTION__);