Commit Graph

41 Commits

Author SHA1 Message Date
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
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
Philipp Holzer 2c5ba7fc15
Introduce Arguments / Module class
- move from App
- add tests for Arguments/Module class
2019-08-11 14:24:05 +02:00
Philipp Holzer 05102911db
Fix App\Mode determination 2019-07-21 14:40:50 +02:00
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
2019-07-21 01:22:10 +02:00
Hypolite Petovan 7383511855 Added test case for Router->getModuleClass 2019-04-04 07:30:48 -04:00
Philipp Holzer f5adbd268b
Fixing tests 2019-02-17 21:41:45 +01:00
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
2019-02-17 20:40:27 +01:00
Philipp Holzer cb791024e4
Refactor ConfigMockTrait to mocked ConfigCache 2019-02-07 20:44:03 +01:00
Hypolite Petovan 98d90e131d Update install to generate config/local.config.php 2018-11-25 01:44:09 -05:00
Philipp Holzer 83ead5ec48
Test enhancements 2018-11-01 13:44:47 +01:00
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
2018-10-06 16:27:20 +02:00