From 21ce5d034b90cd8f1cdb5f4de6ee5047e4bb320a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 3 Jun 2015 12:56:50 +0200 Subject: [PATCH] fix #16713 --- .../middleware/security/CORSMiddlewareTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php b/tests/lib/appframework/middleware/security/CORSMiddlewareTest.php index 92ea5450ab..5c93c95e18 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()); }