Merge pull request #16714 from owncloud/fix-cors-test

Fix #16713
This commit is contained in:
Lukas Reschke 2015-06-03 13:52:14 +02:00
commit 3a233b8698
1 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,13 @@ class CORSMiddlewareTest extends \Test\TestCase {
); );
$this->reflector->reflect($this, __FUNCTION__); $this->reflector->reflect($this, __FUNCTION__);
$middleware = new CORSMiddleware($request, $this->reflector, $this->session); $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()); $middleware->beforeController($this, __FUNCTION__, new Response());
} }