Philipp
ef1e2ce77e
Cleanup tests
...
- Remove DBAMockTrait
- Remove DBStructureMockTrait
8 months ago
Michael
52378eb298
Fighting with the tests
11 months ago
Michael
12c63c9b97
Tests
11 months ago
Michael
0dd0de1eb3
Init class
11 months ago
Michael
4b5eb055c8
Tests
11 months ago
Michael
2aa2c61479
Lock before recreate / fix cache key misspelling
11 months ago
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
1 year ago
Balázs Úr
054c301ef0
Update copyright
1 year ago
Philipp
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory
2 years ago
Philipp
efaec26b1d
Fix wrong `$this->assert...()` with `self::assert...()
2 years ago
Hypolite Petovan
7d705417a9
Adjust testModuleClass() expectations after introducing lastRoutesFileModifiedTime cache key
2 years ago
Hypolite Petovan
1b681222a4
Ensure query parameters are URL encoded in Arguments
...
- Simplify Arguments->determine
- Remove stripZRLs and stripQueryParam Arguments methods
- Updated tests
2 years ago
Hypolite Petovan
ce04c13ea8
Update App\Router-related tests after constructor signature change
2 years ago
nupplaPhil
23c64b9a11
Add license info at Friendica classes
2 years ago
Hypolite Petovan
d1be68b754
Move Module\Profile to Module\Profile\Index
...
- Move /profiles to Module\Settings\Profile\Index
2 years ago
nupplaPhil
f9d0e57f91
Fix tests & Router is now using Dependency Injection instead of DI Registry
2 years ago
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2 years ago
nupplaPhil
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone
2 years ago
nupplaPhil
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
3 years ago
Hypolite Petovan
134d6d18f9
Pass Router parameter to module content method
3 years ago
Michael
695a920d40
Making tests happy
3 years ago
Hypolite Petovan
6fd301a891
Remove irrelevant test in App\RouterTest
...
- HTTP Methods other than POST are coerced into GET in App\Router constructor
3 years ago
Hypolite Petovan
8748bfd8ad
Fix Router tests related to unallowed methods
3 years ago
Hypolite Petovan
4ee9e21a4f
Make Router::getModuleClass throw exceptions
...
- Add new MethodNotAllowedModule
- Add new Module->determineClass catch blocks
- Update Module and Router tests
3 years ago
Philipp Holzer
0e5cb88888
Add router config
...
- Introduce route.config.php structure
- Adding config loader for routes
- Adapt Module class (separation of duties)
- Add tests
3 years ago
Philipp Holzer
b13dbb3dcb
Remove $_SERVER['PHP_SELF'] usage
3 years ago
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()
3 years ago
Philipp Holzer
cba9fa2467
Move isBackend logic to App\Mode
3 years ago
Philipp Holzer
b1ae58cdc5
fix tests & remove superfluous parameter
3 years ago
Philipp Holzer
0af9747c6c
Add Arguments & Modules class
3 years ago
Hypolite Petovan
fcb1a78352
Revert "Introduce Arguments / Module class"
3 years ago
Philipp Holzer
2c5ba7fc15
Introduce Arguments / Module class
...
- move from App
- add tests for Arguments/Module class
3 years ago
Philipp Holzer
05102911db
Fix App\Mode determination
3 years ago
Philipp Holzer
55999730e0
Introduce DICE
...
- Adding dice library
- Adding dependency config
- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor
- Adjust entrypoints (index, console, worker, ..)
- Adding functional test for DI
- Fix tests because of refactorings
3 years ago
Hypolite Petovan
7383511855
Added test case for Router->getModuleClass
3 years ago
Philipp Holzer
f5adbd268b
Fixing tests
3 years ago
Philipp Holzer
eafcf3592d
Config FollowUp
...
- New Configuration (Config is now only holding the instance)
- New PConfiguration (PConfig is now only holding the instance)
- Config & PConfig-Adapter don't need "ConfigCache" anymore
- DB-Connection is now outside App->reload() for better dependency-chaining
3 years ago
Philipp Holzer
cb791024e4
Refactor ConfigMockTrait to mocked ConfigCache
3 years ago
Hypolite Petovan
98d90e131d
Update install to generate config/local.config.php
4 years ago
Philipp Holzer
83ead5ec48
Test enhancements
4 years ago
Philipp Holzer
31148e25cf
Changing Friendica\App\Mode from static methods to public methods
...
- Changing from static methods to public methods
- Adding dev-composer-dependency Mockery for static method mocking (f.e. Config, DBA)
- Adding ModeTest with Mocking
- removing bootstrap from phpunit.xml because of double loading tests\bootstrap.php
4 years ago