Commit graph

1309 commits

Author SHA1 Message Date
Art4
940884e4bd Refactor Crypto::randomDigits() 2024-11-09 23:18:13 +00:00
Art4
cf92446cf3 Fix tests 2024-11-02 22:06:02 +01:00
Art4
04d4c6d8f0 Fix mocking namespace 2024-11-02 20:57:11 +01:00
Art4
5ecee2b9f7 Fix namespace in IntallerTest, mock function_exists() with PHPMock 2024-11-02 17:43:43 +01:00
Art4
7de3b16dc3 Fix namespace for CryptoTest 2024-11-01 21:46:09 +00:00
Michael
22828388c0 The redundant function "fetchfull" is removed 2024-09-04 17:04:45 +00:00
Tobias Diekershoff
c4b58df927 REUSE tests directory 2024-08-24 14:31:41 +02:00
Michael
1f18e096fe Fix tests 2024-07-31 04:38:03 +00:00
Michael
55cec6c61d OpenWebAuth moved to a separate class / Improved authentication handling 2024-05-28 21:59:52 +00:00
Hypolite Petovan
49a0b0fc3c
Merge pull request #14090 from annando/bbcode
The BBCode conversion is split into several smaller functions
2024-04-14 21:59:46 -04:00
Hypolite Petovan
4a0b989386
Merge pull request #14094 from mexon/mat/testing-doc
update testing documentation
2024-04-14 21:58:26 -04:00
Matthew Exon
619a63af6b update testing documentation 2024-04-14 11:11:00 +02:00
Michael
38da9013ff The BBCode conversion is split into several smaller functions 2024-04-14 07:45:56 +00:00
Hypolite Petovan
ed01b0f409
Merge pull request #14075 from mexon/mat/empty-picture-scale
round scaled dimensions up to avoid zero size
2024-04-13 18:30:44 -04:00
Matthew Exon
a20b876d67 add unit tests for getScalingDimensions 2024-04-13 21:50:17 +02:00
Michael
7dc5622dca Issue #14079: Shorten the displayed URL 2024-04-11 04:37:42 +00:00
Michael
78dc61b59e Fallback mechanism for missing IDN functions 2024-04-06 11:26:12 +00:00
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
Michael Vogel
89ffe6875f
Merge pull request #13942 from MrPetovan/bug/fix-api-fixture
Fix API fixture data
2024-03-02 05:48:19 +01:00
Michael
e394a6b0fa Issue 13819: Ensure to not use OEmbed if not wanted 2024-02-29 07:37:58 +00: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
Hypolite Petovan
d37699bc08 Throw Not Found exception when $uid doesn't exist in Factory\Api\Twitter\User->createFromUserId
- Contact::getPublicIdByUserId() wrongly returns 0 when $uid doesn't exist, which is an existing albeit invalid record.
2024-02-27 08:41:51 -05:00
Hypolite Petovan
5b5c9ddc74 Deprecate use of [*] BBCode tag for list items in favor of [li]
- It is conflicting with Markdown syntax
2024-02-09 20:33:42 -05:00
Michael
b948b2c7cb Added tests 2024-01-28 06:56:25 +00:00
Hypolite Petovan
e8c256bcff [Composer] Bump guzzlehttp/guzzle to version 7 to suppress deprecation notices
- Bump divineomega/password_exposed to version 3 to remove dependency on Guzzle version 6
- Add new ICanHandleHttpResponses->getBodyString method to solve inheritance mismatch with GuzzleHttp\Psr7\ResponseInterface->getBody return type
2024-01-12 08:42:46 -05:00
Michael
89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan
769b73e8a3 Bump minimum version to run Friendica to PHP 7.4
- Update version filter of mobiledetect/mobiledetectlib and psr/container to PHP 7.4 versions
- Remove PHP 7.3 PHPUnit instance
- Remove PHP 7.2 specific PDO exception in tests
2023-12-18 21:02:02 -05:00
Michael
9b73189e1d Renamed function name 2023-12-05 19:55:27 +00:00
Michael
0aa49510b2 Changed uri 2023-12-05 07:44:01 +00:00
Michael
691e0dd44a Added another test case 2023-12-05 07:36:13 +00:00
Michael
8e91db7fb1 Fix test again 2023-12-05 06:02:38 +00:00
Michael
2e0c550ee7 Fixed test 2023-12-05 05:57:38 +00:00
Michael
be2e715eb1 Added test 2023-12-05 05:51:39 +00:00
gudzpoz
37188c76b8 Fix substituting smilies and smilies containing whitespaces 2023-11-25 23:29:39 +08:00
gudzpoz
d493946ba4 Allow using punctuation chars as smiley delimiters 2023-11-16 13:31:31 +08:00
gudzpoz
d45e9d6af2 Require whitespace around smilies and normalize federating text 2023-11-16 00:25:11 +08:00
Philipp
32ac54d830
Fix SmiliesTest
Reduce noise because of wrong '<?php' test-data
2023-10-15 21:29:53 +02:00
Philipp
4bcf5e07c0
Adjust InstallerTest 2023-10-15 15:49:02 +02:00
Michael Vogel
c98a0a99a6
Merge pull request #13530 from MrPetovan/bug/json-error-factory-error
Move jsonError out of Factory\Api\Mastodon\Error
2023-10-14 19:35:49 +02:00
Michael
19529e2aa1 Merge remote-tracking branch 'upstream/2023.09-rc' into smilies 2023-10-12 20:49:20 +00:00
Hypolite Petovan
5d428ac8af Add newly required constructor parameter to BaseApi-related tests 2023-10-11 10:17:32 -04:00
Hypolite Petovan
6d009a3e0f Add chunk method to BaseCollection
- Add test for BaseCollection->chunk
2023-10-03 19:58:52 -04:00
Hypolite Petovan
86cba639fc Add implementation of the Content-Type header value from the MIME type RFC
- Add tests for the new classes
2023-10-03 19:58:50 -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
Michael
e9e5bb12b9 Tests ... 2023-09-09 10:48:43 +00:00
Michael
2c308d300a Test tests again 2023-09-09 10:44:51 +00:00
Michael
dbf863fbd2 Test test 2023-09-09 10:37:26 +00:00
Michael
5cc1f87511 Fix tests? 2023-09-09 09:59:30 +00:00