diff options
author | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-07-02 11:39:41 +0200 |
---|---|---|
committer | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-07-02 11:39:41 +0200 |
commit | 805a7cf485d8fa9aa4af7c1b279e1084f53cd2af (patch) | |
tree | 544e1f1631a8459b45e16f787168f236a65922f9 /tests/lib | |
parent | 9933b331663548b8f082239a8ee6c492978bb467 (diff) | |
parent | d31e532780e4b2ecf062018ec22cbd67532d0b64 (diff) | |
download | nextcloud-server-805a7cf485d8fa9aa4af7c1b279e1084f53cd2af.tar.gz nextcloud-server-805a7cf485d8fa9aa4af7c1b279e1084f53cd2af.zip |
Merge pull request #9338 from owncloud/fix-redirect-for-appframework
Redirect after session expiry to the previous loaded page
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php index 47556ca9542..74fc7907fb5 100644 --- a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php +++ b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php @@ -313,7 +313,8 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase { public function testAfterExceptionReturnsRedirect(){ $this->request = new Request( array('server' => - array('HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8') + array('HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', + 'REQUEST_URI' => 'owncloud/index.php/apps/specialapp') ) ); $this->middleware = $this->getMiddleware(true, true); @@ -321,6 +322,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase { $this->secException); $this->assertTrue($response instanceof RedirectResponse); + $this->assertEquals('?redirect_url=owncloud%2Findex.php%2Fapps%2Fspecialapp', $response->getRedirectURL()); } |