diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 1c1bde54a0..03c8467a43 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -295,7 +295,7 @@ class BaseApi extends BaseModule } } - public static function getContactIDForSearchterm(string $screen_name = null, int $cid = null, string $profileurl = null, int $uid) + public static function getContactIDForSearchterm(string $screen_name = null, string $profileurl = null, int $cid = null, int $uid) { if (!empty($cid)) { return $cid; diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 87ca84f1b6..497f3b8b8f 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -295,7 +295,6 @@ class ApiTest extends FixtureTest 'method' ) ); - self::assertTrue($API['api_path']['auth']); self::assertEquals('method', $API['api_path']['method']); self::assertTrue(is_callable($API['api_path']['func'])); }