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
Hypolite Petovan
cdd8e4fd9d
Rename DBA::get_db to DBA::getConnection
...
- Rename DBA::$db to DBA::$connection
2018-07-22 19:28:29 -04:00
Hypolite Petovan
af6dbc654f
Rename Friendica\Database\dba to Friendica\Database\DBA
2018-07-20 08:19:26 -04:00
Hypolite Petovan
daa1177e3a
Update use statement lists with new Friendica\Database\dba class
...
- Remove unused use statement
- Remove superfluous use statements (classes in the same namespace)
- Add missing use statements
2018-07-19 22:15:21 -04:00
Hypolite Petovan
3433c22116
Remove .htconfig.php reference from DatabaseTest
2018-07-16 19:38:15 -04:00
Hypolite Petovan
5196ea22ff
Fix Database connexion in tests
2018-07-16 19:38:15 -04:00
Hypolite Petovan
3e9ff5ef6e
Move debug
2018-07-03 23:20:33 -04:00
Hypolite Petovan
8ad41d4f15
Add debug to database test
2018-07-03 23:14:03 -04:00
Hypolite Petovan
b256f5cf2c
Fix missing env variable replacement
2018-07-03 22:46:45 -04:00
Hypolite Petovan
40d911c284
Use correct App mode to disable logging
...
- Restore normal mode after DBStructure update
- Improve error message in case of missing DB connection
2018-07-03 21:24:16 -04:00
Hypolite Petovan
125f7beb63
Add creation/deletion of separate .htconfig.php used for tests
2018-07-03 21:22:50 -04:00
Hypolite Petovan
eaa3e4d157
Use MYSQL_* environment variables for tests
...
- Prevent `.htconfig.php` override when present during tests.
2018-07-03 08:26:44 -04:00
Hypolite Petovan
4752ea1374
Add .htconfig.php in test setUp
2018-07-03 00:02:02 -04:00
Hypolite Petovan
9cce1f70f9
Add .htconfig.php in test setUp
2018-07-02 23:10:33 -04:00
Pierre Rudloff
e7fceb8e61
Make DatabaseTest::getConnection() return the correct database name to PHPUnit
2018-05-16 13:15:28 +02:00
Pierre Rudloff
f3ca3b2bd5
Add some explanation in DatabaseTest::getConnection()
2018-05-16 13:14:50 +02:00
Pierre Rudloff
f7064be41f
Remove useless line breaks in DatabaseTest
2018-05-16 13:09:05 +02:00
Pierre Rudloff
5ece452a32
Remove unused class import in DatabaseTest
2018-05-16 13:08:17 +02:00
Pierre Rudloff
3195d6e125
Add API tests
2018-05-10 19:12:00 +02:00