diff options
Diffstat (limited to 'tests/unit/middleware')
-rw-r--r-- | tests/unit/middleware/CORSMiddlewareTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/middleware/CORSMiddlewareTest.php b/tests/unit/middleware/CORSMiddlewareTest.php index 59d1cc415..7f175d820 100644 --- a/tests/unit/middleware/CORSMiddlewareTest.php +++ b/tests/unit/middleware/CORSMiddlewareTest.php @@ -38,7 +38,7 @@ class CORSMiddlewareTest extends \PHPUnit_Framework_TestCase { */ public function testSetCORSAPIHeader() { $request = new Request( - array('server' => array('Origin' => 'test')) + array('server' => array('HTTP_ORIGIN' => 'test')) ); $middleware = new CORSMiddleware($request); $response = $middleware->afterController('\OCA\News\Middleware\CORSMiddlewareTest', |