Commit Graph

67 Commits

Author SHA1 Message Date
Michael 89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Philipp Holzer 5fbdcd4a26
Fix PHPUnit 10 deprecations 2023-07-05 23:15:23 +02:00
Philipp Holzer 45749c14be
Refactor BaseURL.php to UriInterface compatible class
- remove parts
- added tests
2023-02-18 21:12:20 +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
Philipp Holzer a6fb683bcd
Remove BasePath dependency from App\Mode 2023-01-15 16:17:07 +01:00
Philipp Holzer 10f3de0aa2
Remove deprecated Mode::DBCONFIGAVAILABLE 2023-01-03 14:22:04 +01:00
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Philipp Holzer 5bf5b5e6c9
adaptions :-) 2022-06-23 23:01:09 +02:00
Philipp Holzer 13783089e7
Add copyright 2022-06-23 22:44:17 +02:00
Philipp Holzer d441b90bda
Respect Forwarded-For headers 2022-06-23 22:42:35 +02:00
Philipp Holzer ee2a15d822
Add HTTP method to App\Arguments 2022-01-04 20:59:25 +01:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp Holzer b5d2d32b44
Split and delete `ModuleController`
- $moduleName is part of the argument string => App\Arguments
- $isBackend boolean already part of App\Mode::isBackend()
- $module is now the direct return of App\Router::getModule()
- ModuleController::run() moved to BaseModule::run()
2021-11-27 12:39:45 +01:00
Philipp Holzer 645e4edc63
Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67.
2021-11-19 20:18:48 +01:00
Hypolite Petovan 89d6c89b67
Revert "Replace Module::init() with Constructors" 2021-11-19 07:23:23 -05:00
Philipp Holzer f3d7d610e8
Fix tests 2021-11-17 22:21:03 +01:00
Philipp Holzer e73eda0156
Add feedback 2021-11-17 08:16:33 +01:00
Philipp d638775927
Update tests/src/App/ModuleTest.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-17 06:58:28 +01:00
Philipp Holzer c95d47b0b4
Refactor App\Module to App\ModuleController and rename properties 2021-11-16 22:40:39 +01:00
Philipp Holzer 8bf61848f9
Fix Legacy test 2021-11-15 00:01:16 +01:00
Philipp Holzer 489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp Holzer 018275919c
Create interface for static Module calls 2021-11-14 23:30:04 +01:00
Michael e2ff7aef66 Switched to another legacy module 2021-11-08 07:32:46 +00: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 ef1e2ce77e
Cleanup tests
- Remove DBAMockTrait
- Remove DBStructureMockTrait
2021-10-18 20:08:40 +02:00
Michael 52378eb298 Fighting with the tests 2021-07-25 04:56:40 +00:00
Michael 12c63c9b97 Tests 2021-07-25 04:52:17 +00:00
Michael 0dd0de1eb3 Init class 2021-07-25 04:44:23 +00:00
Michael 4b5eb055c8 Tests 2021-07-25 04:42:34 +00:00
Michael 2aa2c61479 Lock before recreate / fix cache key misspelling 2021-07-25 04:31:48 +00:00
Philipp Holzer 02e6dff6a0
Fix tests
- Fix InstallerTest case
- Fix native function mocking
- Add returntype for Unit-Tests
- Fixing ExtendedPDO test troubles
- Fix wrong class inheritance path for DatabaseTestTrait.php
- Fix SyslogLogger Server Exception for PHP8
- Add user/contact to database.fixture.php
- Avoid invalid rollbacks for test setup in PHP8
2021-04-04 20:11:57 +02:00
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Philipp Holzer d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory 2020-10-18 20:52:27 +02:00
Philipp Holzer efaec26b1d
Fix wrong `$this->assert...()` with `self::assert...() 2020-10-18 20:52:27 +02:00
Hypolite Petovan 7d705417a9 Adjust testModuleClass() expectations after introducing lastRoutesFileModifiedTime cache key 2020-10-15 12:41:49 -04:00
Hypolite Petovan 1b681222a4 Ensure query parameters are URL encoded in Arguments
- Simplify Arguments->determine
- Remove stripZRLs and stripQueryParam Arguments methods
- Updated tests
2020-09-12 09:09:16 -04:00
Hypolite Petovan ce04c13ea8 Update App\Router-related tests after constructor signature change 2020-07-27 02:33:08 -04:00
nupplaPhil 23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
Hypolite Petovan d1be68b754 Move Module\Profile to Module\Profile\Index
- Move /profiles to Module\Settings\Profile\Index
2020-01-22 19:42:32 -05:00
Philipp Holzer f9d0e57f91
Fix tests & Router is now using Dependency Injection instead of DI Registry 2020-01-19 22:38:33 +01:00
Philipp Holzer d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
Philipp Holzer cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone 2020-01-19 21:29:36 +01:00
Philipp Holzer c1dbb25656
Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
Hypolite Petovan 134d6d18f9 Pass Router parameter to module content method 2019-11-06 22:35:28 -05:00
Michael 695a920d40 Making tests happy 2019-11-05 06:51:19 +00:00
Hypolite Petovan 6fd301a891 Remove irrelevant test in App\RouterTest
- HTTP Methods other than POST are coerced into GET in App\Router constructor
2019-10-13 10:16:38 -04:00
Hypolite Petovan 8748bfd8ad Fix Router tests related to unallowed methods 2019-10-13 07:54:50 -04:00
Hypolite Petovan 4ee9e21a4f Make Router::getModuleClass throw exceptions
- Add new MethodNotAllowedModule
- Add new Module->determineClass catch blocks
- Update Module and Router tests
2019-10-11 19:59:05 -04:00