From c61776aba6927befc98dda2d5ce6d607e28bd9cd Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Nov 2021 07:11:33 +0000 Subject: [PATCH] Partially fixing source detection --- tests/legacy/ApiTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 6657644f8c..9d682f4155 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -243,7 +243,7 @@ class ApiTest extends FixtureTest */ public function testApiSource() { - self::assertEquals('API', BaseApi::getCurrentApplication()['name']); + self::assertEquals('api', BaseApi::getCurrentApplication()['name']); } /** @@ -264,7 +264,7 @@ class ApiTest extends FixtureTest */ public function testApiSourceWithGet() { - $_GET['source'] = 'source_name'; + $_REQUEST['source'] = 'source_name'; self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']); }