Commit Graph

133 Commits

Author SHA1 Message Date
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
gudzpoz 37188c76b8 Fix substituting smilies and smilies containing whitespaces 2023-11-25 23:29:39 +08:00
Philipp Holzer 93af6f0564
Add tests for InstanceManager and remove Decorator hook logic (avoid complex Dice logic) 2023-07-17 00:10:15 +02:00
Philipp Holzer 14b76e48f0
Introduce dynamic hook loading
- Dynamically load addon files
- Dynamically load hooks
- Rewrite Logger-logic to use new hook logic (Monolog is working again)
2023-07-16 18:43:35 +02:00
Philipp Holzer f68dd99518
Some more deprecation fixups 2023-07-05 23:16:01 +02:00
Philipp Holzer 5fbdcd4a26
Fix PHPUnit 10 deprecations 2023-07-05 23:15:23 +02:00
Philipp Holzer e072c9985e
Fixup and adding tests 2023-03-27 19:36:13 +02:00
Josh Soref 672686faa5 spelling: deletes
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 18:59:11 -04:00
Josh Soref 752d5ada99 spelling: valuable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:14:16 -04:00
Josh Soref b7811f7423 spelling: outputting
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:14:16 -04:00
Josh Soref 66a1e505e3 spelling: hierarchical
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:23 -04:00
Philipp Holzer 3edc5553c6
use own local.config.php for CI 2023-02-12 14:38:43 +01:00
Philipp Holzer ad284208ee
Fix and adapt tests 2023-02-12 13:09:05 +01:00
Philipp Holzer 513ef03421
Revert node.config.php into Config table 2023-02-10 14:06:22 +01:00
Philipp Holzer eefd0b1143
fix PHP-CS 2023-01-21 19:47:47 +01:00
Philipp Holzer 9627af924a
Add support for toString/Serializable 2023-01-21 19:42:48 +01:00
Philipp Holzer 293c121c48
Adhere PHP-CS.. 2023-01-16 22:25:26 +01:00
Philipp Holzer f609e38600
Introduce new Hook logic
- InstanceManager for computing strategies and to allow decorators
- Adapting Core\Logger to use it
2023-01-16 22:20:33 +01:00
Philipp Holzer ab6efea9b2
Replace Config-Cache dependency with Config-Model (no more DB-waiting necessary) 2023-01-15 16:17:08 +01:00
Hypolite Petovan 45a6888647 Update tests after removing App dependency from hook calls 2023-01-14 10:38:38 -05:00
Philipp Holzer 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 Holzer 6ef609f4fb
Add dbview.config.php for vfs directory mocking 2022-07-12 23:46:21 +02:00
Roland Häder cdcfb4064b
Changes:
- added type-hints
- added missing documentation
- renamed Logger::getWorker() to Logger::getLogger() as there is no worker class
  returned but the actual (inner) logger
2022-06-21 21:22:16 +02:00
Roland Häder 8092188991
Added important comment from @nupplaphil@github.com 2022-06-21 21:12:59 +02:00
Roland Häder f38ad168f5
Reverted and improved TODO:
------
@nupplaphil: There is no easy possibility to add a logger here, that's why there
isn't any yet and instead a placeholder.. This execution point is a critical
state during a testrun, and tbh I'd like to leave here no further logic (yet)
because I spent hours debugging cases, where transactions weren't fully closed
and strange/unpredictable errors occur (sometimes -mainly during debugging other
errors :) ...)
-----
2022-06-21 19:21:25 +02:00
Roland Häder 3b8d9a7248
Use protected $this->logger instead 2022-06-21 17:54:48 +02:00
Roland Häder a7651fa1d5
Changes:
- let's at least log the error message, yes it does flood your logfile
2022-06-21 13:47:40 +02:00
Roland Häder cc750d743b
Changes:
- some methods now need to return bool to be compatible
- added some missing type-hints
2022-06-20 08:12:54 +02:00
Roland Häder 9c80dd35e5
Both declarations must be the same 2022-06-20 08:07:12 +02:00
Roland Häder 51f43278d6
Fixed incompatible types 2022-06-17 18:00:36 +02:00
Hypolite Petovan 4c5d9e22a8 Propagate signature change of Database::transaction() 2022-05-29 14:23:57 -04:00
Philipp Holzer 7dd8f7102f
Remove deprecated static mock 2022-01-22 21:44:12 +01:00
Philipp Holzer c3be053742
Add license header to various tests 2022-01-07 00:35:28 +01:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp Holzer 901068f770
Fix test 2021-11-30 20:53:47 +01:00
Philipp Holzer 9cec38f916 Make HTTPInputData dynamic
- Removing DI:: dependency inside App class
- Making testability easier & adapting tests
2021-11-30 01:07:59 -05:00
Philipp Holzer d576bb136b
Fix BaseApi and corresponding tests 2021-11-28 13:11:12 +01:00
Philipp Holzer 4cc36c9b2c
Fix BBCode::expandTags() & Remove AppMockTrait 2021-11-28 13:07:38 +01:00
Philipp Holzer ca5c40c97e
Delete deprecated ApiResponseDouble 2021-11-27 12:40:57 +01:00
Philipp Holzer 537b74f307
Inherit `ApiResponse` from `Response` 2021-11-27 12:40:54 +01:00
Philipp Holzer bfe925aabe
Make PHP-CS happy and add (c) header 2021-11-12 21:50:02 +01:00
Philipp Holzer 6725f05ab2
Moved API\Notification tests 2021-11-12 21:35:21 +01:00
Philipp Holzer e477cf215d
Make API testable & move PhotoAlbum tests to new destination 2021-11-12 21:08:36 +01:00
Philipp Holzer 2ab0d06996
Restructure Storage to new paradigm 2021-10-27 20:00:19 +02:00
Philipp Holzer 58eea1adaa
Cleanup namespaces 2021-10-26 22:11:10 +02:00
Philipp Holzer b216317477
Refactoring Core class structures ... 2021-10-26 22:11:09 +02:00
Philipp Holzer ab83d0dd27
Restructure (P)Config to follow new paradigm 2021-10-26 22:11:06 +02:00
Philipp Holzer f273c27e3b
Fixups 2021-10-18 23:32:42 +02:00