]> git.mxchange.org Git - friendica.git/commitdiff
Tests
authorMichael <heluecht@pirati.ca>
Wed, 24 Nov 2021 07:26:22 +0000 (07:26 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 24 Nov 2021 07:26:22 +0000 (07:26 +0000)
tests/legacy/ApiTest.php

index 9d682f4155926216ef9dfe51e085b8c18067499c..c8f0ae914245a6bc07b2da70a1489d2147df9364 100644 (file)
@@ -243,7 +243,7 @@ class ApiTest extends FixtureTest
         */
        public function testApiSource()
        {
-               self::assertEquals('api', BaseApi::getCurrentApplication()['name']);
+               self::assertEquals('api', BasicAuth::getCurrentApplicationToken()['name']);
        }
 
        /**
@@ -254,7 +254,7 @@ class ApiTest extends FixtureTest
        public function testApiSourceWithTwidere()
        {
                $_SERVER['HTTP_USER_AGENT'] = 'Twidere';
-               self::assertEquals('Twidere', BaseApi::getCurrentApplication()['name']);
+               self::assertEquals('Twidere', BasicAuth::getCurrentApplicationToken()['name']);
        }
 
        /**
@@ -265,7 +265,7 @@ class ApiTest extends FixtureTest
        public function testApiSourceWithGet()
        {
                $_REQUEST['source'] = 'source_name';
-               self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']);
+               self::assertEquals('source_name', BasicAuth::getCurrentApplicationToken()['name']);
        }
 
        /**