diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 6657644f8..9d682f415 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']); }