Commit graph

60 commits

Author SHA1 Message Date
Philipp
5bf5b5e6c9
adaptions :-) 2022-06-23 23:01:09 +02:00
Philipp
13783089e7
Add copyright 2022-06-23 22:44:17 +02:00
Philipp
d441b90bda
Respect Forwarded-For headers 2022-06-23 22:42:35 +02:00
Philipp
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
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
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
f3d7d610e8
Fix tests 2021-11-17 22:21:03 +01:00
Philipp
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
c95d47b0b4
Refactor App\Module to App\ModuleController and rename properties 2021-11-16 22:40:39 +01:00
Philipp
8bf61848f9
Fix Legacy test 2021-11-15 00:01:16 +01:00
Philipp
489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp
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
58eea1adaa
Cleanup namespaces 2021-10-26 22:11:10 +02:00
Philipp
b216317477
Refactoring Core class structures ... 2021-10-26 22:11:09 +02:00
Philipp
ab83d0dd27
Restructure (P)Config to follow new paradigm 2021-10-26 22:11:06 +02:00
Philipp
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
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
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory 2020-10-18 20:52:27 +02:00
Philipp
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
nupplaPhil
f9d0e57f91
Fix tests & Router is now using Dependency Injection instead of DI Registry 2020-01-19 22:38:33 +01:00
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
nupplaPhil
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone 2020-01-19 21:29:36 +01:00
nupplaPhil
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
Philipp Holzer
0e5cb88888
Add router config
- Introduce route.config.php structure
- Adding config loader for routes
- Adapt Module class (separation of duties)
- Add tests
2019-09-29 11:57:27 +02:00
Philipp Holzer
b13dbb3dcb
Remove $_SERVER['PHP_SELF'] usage 2019-09-17 16:47:00 +02:00
Philipp Holzer
90b438e082
Move mode settings to App\Mode
- Move isAjax() to App\Mode
- Move isTablet() to App\Mode
- Move isMobile() to App\Mode
- Refactor last usage of App->isBackend()
2019-08-17 09:09:13 +02:00
Philipp Holzer
cba9fa2467
Move isBackend logic to App\Mode 2019-08-15 15:51:15 +02:00
Philipp Holzer
b1ae58cdc5
fix tests & remove superfluous parameter 2019-08-13 16:29:16 +02:00
Philipp Holzer
0af9747c6c
Add Arguments & Modules class 2019-08-13 16:29:11 +02:00
Hypolite Petovan
fcb1a78352
Revert "Introduce Arguments / Module class" 2019-08-11 18:01:11 -04:00