Commit graph

123 commits

Author SHA1 Message Date
Hypolite Petovan
1b651519a3 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
2024-03-05 10:10:15 -05:00
Hypolite Petovan
0d922b75af Use public contact ids where they should be used in API fixture data 2024-02-27 08:41:51 -05:00
Hypolite Petovan
ba0a8069c4 Normalize local node hostname across API fixtures
- This was causing the fixture data to be wrongly "repaired" in Model\User::getOwnerDataById because of a mismatch between the local base URL and the fixture-provided self contact URL
2024-02-27 08:41:51 -05:00
Michael
89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan
5d428ac8af Add newly required constructor parameter to BaseApi-related tests 2023-10-11 10:17:32 -04:00
Hypolite Petovan
642baa1f2a Rename ApipResponse->exit* methods to better show their meaning 2023-09-24 07:08:16 -04:00
Hypolite Petovan
960171c4e0 Remove dependency on super-globals in Module\Api\ApiResponse
- Updated DI dependencies to reflect the new parameters
- Updated tests to reflect the new parameters
2023-09-24 07:08:16 -04:00
Josh Soref
af324f6adf spelling: response
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:14:16 -04:00
Josh Soref
2da2a38d48 spelling: applications
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:22 -04:00
Philipp
7e92adef6c
Fix API tests without addon table 2023-02-21 21:01:40 +01:00
Philipp
9e6d95284b
Adapt tests to use new BaseURL UriInterface 2023-02-18 21:12:21 +01:00
Philipp
ad284208ee
Fix and adapt tests 2023-02-12 13:09:05 +01:00
Hypolite Petovan
8547014735 Update API unsupported test 2023-01-08 02:36:26 -05:00
Philipp
326566638f
adapt tests 2023-01-03 14:22:03 +01:00
Hypolite Petovan
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Philipp
4f1bb0d274
Use X-REQUEST-ID for Error pages 2022-12-26 21:18:05 +01:00
Philipp
bfc1c157f1
Adapt UserSession
- Move from App methods to UserSession methods
- Deprecate corresponding App methods
2022-12-26 21:18:04 +01:00
Michael
62a0d55fc8 The friendica constants have been moved to the app class 2022-10-17 10:37:48 +00:00
Philipp
2d4598a4db
adapt return type 2022-09-25 23:17:37 +02:00
Philipp
60b1cac166
Add empty testcase for later .. would work if we could mock applications 2022-09-25 21:39:29 +02:00
Hypolite Petovan
b7cee324b0 Add legacy notification endpoint for deprecated Notify entity
- Add dependencies to Notifications\Notification module class
2022-03-14 07:56:21 -04:00
Michael
329dc22137 Fix test? 2022-02-25 21:03:16 +00:00
Philipp
40b3c69eec
Adapt test names 2022-01-22 21:43:30 +01:00
Philipp
fbefb599dc
Move last legacy API tests & adapt phpunit.xml 2022-01-22 21:29:43 +01:00
Michael
51dcfe134e fixing some more tests 2022-01-16 20:58:58 +00:00
Michael
0f7b48c53e Fix wrong return value 2022-01-16 20:37:50 +00:00
Michael
88ac888a3b Fix some tests 2022-01-16 20:25:46 +00:00
Philipp
c3be053742
Add license header to various tests 2022-01-07 00:35:28 +01:00
Philipp
f6c240c062
Fix intended failure ;-) 2022-01-06 23:08:00 +01:00
Philipp
3e0bcf7acd
Add license check 2022-01-06 22:28:00 +01:00
Philipp
6dbbd08179
Use rawContent for Special Options to avoid a protected options() method 2022-01-04 20:59:29 +01:00
Philipp
37f850377e
Fix App routing 2022-01-04 20:59:28 +01:00
Philipp
dc46af5ea1
Automatically return allowed HTTP methods for OPTIONS per specific endpoint 2022-01-04 20:59:27 +01:00
Philipp
c1f2e391b0
Move Arguments reset to right place 2022-01-04 20:59:26 +01:00
Philipp
5e85939502
Introduce FixtureTest::useHttpMethod for manually overwrite the HTTP Method argument 2022-01-04 20:59:26 +01:00
Philipp
c7f2ba213b
Fix OPTIONS 2022-01-04 20:59:25 +01:00
Philipp
eaad220738
Add explicit status setting for PSR/ResponseInterface & add tests for OPTIONS endpoint 2022-01-04 20:59:25 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp
301ac83ebf
Add feedback - avoid intermediate variables 2022-01-02 01:04:04 +01:00
Philipp
9d8a420391
Move API RSS tests 2021-12-30 22:37:23 +01:00
Philipp
2e221943d4
Move ApiResponse & Twitter Status tests 2021-12-30 22:08:46 +01:00
Philipp
6412484fa6
Move API DirectMessage tests 2021-12-30 21:07:20 +01:00
Philipp
0f40aec0e3
Move DirectMessages/Conversation tests 2021-12-30 20:18:34 +01:00
Philipp
07eca542a4
Move DirectMessages/Sent tests 2021-12-30 20:16:48 +01:00
Philipp
95e3583c68
Move DirectMessages/All tests 2021-12-30 20:04:32 +01:00
Philipp
e7c5bdc779
Move DirectMessages/Inbox tests 2021-12-30 20:02:53 +01:00
Philipp
0c4c6faa54
Move DirectMessages/Destory tests & fix Destroy condition 2021-12-30 19:58:19 +01:00
Philipp
3374cac767
Move DirectMessages/New tests 2021-12-30 19:46:13 +01:00
Philipp
5d69f7411d
Add MessageDirect\Search tests 2021-12-27 20:02:37 +01:00