Commit Graph

52 Commits

Author SHA1 Message Date
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01: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
nupplaPhil 7d714319c8 Add license info at Friendica PHP files 2020-02-09 16:34:23 +01:00
Philipp Holzer d56bd28a07 Refactor Cache/Lock to DICE
- Refactor Cache classes
- Refactor Lock classes
- Improved test speed (removed some seperate class annotations)
2019-08-03 20:51:58 +02:00
Philipp Holzer df9ebf5e8e Replace api.yml to api.fixture.php
- Remove yaml dependency
- Add PHP array based fixture possibility
2019-07-28 20:46:29 +02:00
Philipp Holzer b08ac3c0a7 Remove Phpunit/Dbunit
- Introduce own Yaml-to-SQL class
- Introduce new way of MySQL-DB-tests (per rollback)
- Remove dependency phpunit/dbunit
- Introduce new dev-dependency for YAML-ready (Symfony YAML reader)
2019-07-28 17:40:42 +02:00
Philipp Holzer 37d03bbeae Introduce test optimization
- Add static connection for whole tests
- Introduce ExtendedPDO class to enable nested transactions
- Add rollback logic for tests to ensure reliability and increase speed
2019-07-27 23:54:13 +02:00
Philipp Holzer 07aaf292ec Fix tests 2019-07-27 23:54:13 +02:00
Philipp Holzer a8e6a57e9b Fixing installer 2019-07-21 14:21:02 +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
Philipp Holzer 92fb0a82ca Dynamic config loading
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 20:16:43 +02:00
Philipp Holzer c293eadb78 Improve & fixing Tests 2019-07-14 22:12:11 +02:00
Philipp Holzer 90a38a00d8 Adding basepath, urlpath, hostname and ssl_policy to installation 2019-04-14 14:23:06 +02:00
Philipp Holzer fbd056327a DBA-Logger fix 2019-04-13 20:46:58 +02:00
Philipp Holzer 49def0dc27 Adding ConfigFileSaver and tests 2019-03-24 13:47:35 +01:00
Philipp Holzer 383a6715c3 Added first version of ConfigCacheSaver 2019-03-23 19:34:54 +01:00
Philipp Holzer 1a2527cdba Move AppMode 2019-03-22 23:22:32 -04:00
Philipp Holzer 5f17ce574f Fixing DBA::(re-)connect() 2019-02-23 12:50:52 +01:00
Philipp Holzer b23368b0ea bugfixing test 2019-02-23 00:51:08 +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 5e6e1a8025 Introducing Profiler 2019-02-16 23:11:30 +01:00
Philipp Holzer 0f5a50b46b Bugfixing tests 2019-02-03 22:53:39 +01:00
Philipp Holzer 1e0e1674f2 4) Adding Factories to other entrypoints 2019-02-03 22:46:50 +01:00
Philipp Holzer 83ead5ec48 Test enhancements 2018-11-01 13:44:47 +01:00
Philipp Holzer 5ab115598c Code Standards 2018-10-22 21:11:09 +02:00
Philipp Holzer d28424ddce Code standards 2018-10-22 21:10:31 +02:00
Philipp Holzer 4a82708cbf Fix Testing 2018-10-22 20:59:51 +02:00
Philipp Holzer cbb9a2e8b7 Fix Testing 2018-10-22 20:23:06 +02:00
Philipp Holzer 8cc15fd2a8 Bugfixing DatabaseTest 2018-10-10 00:20:08 +02:00
Philipp Holzer 5a02e39a65 Rename App Methods
- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
2018-10-10 00:16:06 +02:00
Philipp Holzer a2fb49a2b4 Removing debugging echo
Updating Tests
2018-10-06 19:11:00 +02:00
Hypolite Petovan 5f48b98505 Skip DB tests if MYSQL_* environment variables are missing 2018-08-04 16:35:31 +02:00