summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-03 13:52:14 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-03 13:52:14 +0200
commit3a233b86983a5dadc225d734df97895f04be9f16 (patch)
tree8f96e58314acb0ccc677bf70b228e116912011c1 /tests
parente3440863bc1108c0241498a0952379adc4a782b2 (diff)
parent21ce5d034b90cd8f1cdb5f4de6ee5047e4bb320a (diff)
downloadnextcloud-server-3a233b86983a5dadc225d734df97895f04be9f16.tar.gz
nextcloud-server-3a233b86983a5dadc225d734df97895f04be9f16.zip
Merge pull request #16714 from owncloud/fix-cors-test
Fix #16713
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/middleware/security/CORSMiddlewareTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php b/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php
index 92ea5450ab9..5c93c95e188 100644
--- a/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php
+++ b/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php
@@ -121,6 +121,13 @@ class CORSMiddlewareTest extends \Test\TestCase {
);
$this->reflector->reflect($this, __FUNCTION__);
$middleware = new CORSMiddleware($request, $this->reflector, $this->session);
+ $this->session->expects($this->never())
+ ->method('logout');
+ $this->session->expects($this->never())
+ ->method('login')
+ ->with($this->equalTo('user'), $this->equalTo('pass'))
+ ->will($this->returnValue(true));
+ $this->reflector->reflect($this, __FUNCTION__);
$middleware->beforeController($this, __FUNCTION__, new Response());
}