From 1b651519a3513def63eb5b5a67a4efcf1d6fab8d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 5 Mar 2024 10:10:15 -0500 Subject: [PATCH] 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 --- tests/datasets/api.fixture.php | 3 ++- tests/src/Module/Api/ApiTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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' ];