1
0
Fork 0

Partially fixing source detection

This commit is contained in:
Michael 2021-11-24 07:11:33 +00:00
parent a86dee8e59
commit c61776aba6

View file

@ -243,7 +243,7 @@ class ApiTest extends FixtureTest
*/ */
public function testApiSource() 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() public function testApiSourceWithGet()
{ {
$_GET['source'] = 'source_name'; $_REQUEST['source'] = 'source_name';
self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']); self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']);
} }