From: Hypolite Petovan Date: Tue, 5 Mar 2024 15:10:15 +0000 (-0500) Subject: Normalize API fixture data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b651519a3513def63eb5b5a67a4efcf1d6fab8d;p=friendica.git Normalize API fixture data - Change public contact name to the related local user name - Add location data to profile record that is used to update self and public contact during Auth --- diff --git a/tests/datasets/api.fixture.php b/tests/datasets/api.fixture.php index 907d4545f9..fb758e7334 100644 --- a/tests/datasets/api.fixture.php +++ b/tests/datasets/api.fixture.php @@ -215,7 +215,7 @@ return [ 'id' => 48, 'uid' => 0, 'uri-id' => 42, - 'name' => 'Self contact', + 'name' => 'Test user', 'nick' => 'selfcontact', 'self' => 0, 'nurl' => 'http://friendica.local/profile/selfcontact', @@ -928,6 +928,7 @@ return [ [ 'id' => 1, 'uid' => 42, + 'locality' => 'DFRN', ], ], 'group' => [ diff --git a/tests/src/Module/Api/ApiTest.php b/tests/src/Module/Api/ApiTest.php index 31723cd90f..77f5fafa4b 100644 --- a/tests/src/Module/Api/ApiTest.php +++ b/tests/src/Module/Api/ApiTest.php @@ -43,7 +43,7 @@ abstract class ApiTest extends FixtureTest // User data that the test database is populated with const SELF_USER = [ 'id' => 42, - 'name' => 'Self contact', + 'name' => 'Test user', 'nick' => 'selfcontact', 'nurl' => 'http://localhost/profile/selfcontact' ];