[Pkg-owncloud-commits] [owncloud] 276/457: fix #16713

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 21ce5d034b90cd8f1cdb5f4de6ee5047e4bb320a
Author: Bernhard Posselt <dev at bernhard-posselt.com>
Date:   Wed Jun 3 12:56:50 2015 +0200

    fix #16713
---
 tests/lib/appframework/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 92ea545..5c93c95 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());
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list