summaryrefslogtreecommitdiffstats
path: root/tests/unit/external/NewsAPITest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/external/NewsAPITest.php')
-rw-r--r--tests/unit/external/NewsAPITest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/external/NewsAPITest.php b/tests/unit/external/NewsAPITest.php
index 116418fc6..a14faafc7 100644
--- a/tests/unit/external/NewsAPITest.php
+++ b/tests/unit/external/NewsAPITest.php
@@ -116,7 +116,7 @@ class NewsAPITest extends ControllerTestUtility {
public function testCorsUsesOriginIfGiven() {
- $this->request = new Request(array('server' => array('Origin' => 'test')));
+ $this->request = new Request(array('server' => array('HTTP_ORIGIN' => 'test')));
$this->newsAPI = new NewsAPI($this->api, $this->request, $this->updater);
$response = $this->newsAPI->cors();