]> git.mxchange.org Git - friendica.git/commitdiff
Normalize API fixture data
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 5 Mar 2024 15:10:15 +0000 (10:10 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 5 Mar 2024 15:10:15 +0000 (10:10 -0500)
- 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
tests/src/Module/Api/ApiTest.php

index 907d4545f908bfeacf0e347b88f0bb936990f4f8..fb758e733414704f1e04cb9b78c205790294377e 100644 (file)
@@ -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' => [
index 31723cd90f9cbe88e4b12023670eadf78cfdf768..77f5fafa4bc1983565dbf06198acbcab51592493 100644 (file)
@@ -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'
        ];