Skip to content
Snippets Groups Projects
Commit 21ce5d03 authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

fix #16713

parent 50074872
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,13 @@ class CORSMiddlewareTest extends \Test\TestCase { ...@@ -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());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment