diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-14 17:20:51 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-15 11:13:55 +0100 |
commit | cd5925036a6cfb1f3f4e27a5d1893cbf7a10be47 (patch) | |
tree | b98cf7853f08eeaa7daa0b5f41b78ba9a651b08c /tests/lib/appframework | |
parent | 0f3c5d8541dcb41eebd00f22864a0a646c11124f (diff) | |
download | nextcloud-server-cd5925036a6cfb1f3f4e27a5d1893cbf7a10be47.tar.gz nextcloud-server-cd5925036a6cfb1f3f4e27a5d1893cbf7a10be47.zip |
Check if app is enabled for user
Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps
Diffstat (limited to 'tests/lib/appframework')
-rw-r--r-- | tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php | 4 |
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__); |