Commit Graph

305 Commits

Author SHA1 Message Date
Philipp Holzer b439df892a
Apply suggestions 2023-01-03 17:24:05 +01:00
Philipp Holzer 072464119a
Make PHP-CS happy 2023-01-03 15:40:57 +01:00
Philipp Holzer dd88d193b9
Escape single quotes and backslashes 2023-01-03 15:36:36 +01:00
Philipp Holzer 65d79d4c93
Introduce ISetConfigValuesTransactional for transactional config behaviour 2023-01-03 14:22:07 +01:00
Philipp Holzer 5ff1d431aa
add another test 2023-01-03 14:22:06 +01:00
Philipp Holzer 326566638f
adapt tests 2023-01-03 14:22:03 +01:00
Philipp Holzer fea4b202c1
Introduce ConfigFileTransformer for Config files 2023-01-03 14:22:02 +01:00
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Philipp Holzer 9936081c7e
Fix DBA lock test 2022-12-29 22:56:27 +01:00
Philipp Holzer 86f80af432
Rename Interface 2022-12-29 22:37:12 +01:00
Philipp Holzer 7c4c409060
Change key-value table
- Make "k" as primary key
- Added "updated_at"
2022-12-29 22:36:08 +01:00
Philipp Holzer 47764387b3
Introduce Key-Value Pair storage provider 2022-12-29 21:53:56 +01:00
Hypolite Petovan 9aa05eb911 Deprecate themes duepuntozero, quattro and smoothly 2022-11-05 00:06:10 -04:00
Philipp 7c4611af19
Update tests/src/Core/Session/UserSessionTest.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-10-20 20:47:43 +02:00
Philipp Holzer 940619325d
Add SessionUsers class including tests 2022-10-20 20:27:34 +02:00
Philipp Holzer 497fc4e432
Move Monolog to Addons 2022-10-17 22:22:00 +02:00
Michael 06698cc5f6 Test? 2022-07-17 09:31:44 +00:00
Michael f0fe323832 Possibly now the tests work 2022-07-17 09:17:07 +00:00
Michael 5188180094 Fixed test 2022-07-17 09:08:12 +00:00
Michael 760aecefd8 Test added 2022-07-17 09:02:28 +00:00
Roland Häder 3546d0aabe
This class has already been "imported". 2022-07-16 08:17:43 +02:00
Philipp Holzer 41803cb731
Fix tests 2022-07-12 23:40:31 +02:00
Hypolite Petovan 91f5a7cc6b Convert potential spaces in Memcache(d) key names
- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1166475036
- Add test for space in cache keys
2022-06-26 07:30:30 -04:00
Philipp 3d8e82d95d
Merge pull request #11141 from urbalazs/language-names
Add native language names to language selector & fix config during install
2022-01-23 20:55:40 +01:00
Philipp Holzer 150e3a6f42
Add DEVELOP flag for StorageManager for testing purpose only 2022-01-23 20:40:38 +01:00
Philipp Holzer 7ec4d42461
Fix test 2022-01-23 20:29:46 +01:00
Philipp Holzer fbefb599dc
Move last legacy API tests & adapt phpunit.xml 2022-01-22 21:29:43 +01:00
Philipp Holzer c3be053742
Add license header to various tests 2022-01-07 00:35:28 +01:00
Michael 543cc7f51f Moved tests, changes after review 2022-01-06 20:13:32 +00:00
Philipp 322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp Holzer 2f13afb4c0
Fix database lock driver test 2022-01-01 21:24:16 +01:00
Philipp Holzer 015de29b7b
Replace assertRegExp() assertMatchesRegularExpression() 2021-12-12 20:19:52 +01:00
Philipp Holzer 31ca758d4e
Use ArraySubsetAsserts 2021-12-10 21:34:19 +01:00
Philipp Holzer 5350e0852d
Add `hostname` to `Process` entity 2021-11-06 20:21:01 +01:00
Philipp Holzer 9a5e6642b6
Add Unique-Id for each worker execution 2021-11-05 21:07:14 +01:00
Michael 63da4a75e9 The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
Michael 3d08eb0652 Fix test 2021-11-02 19:11:29 +00:00
Philipp Holzer 22663c4ae5
Move Introspection to Logger package 2021-10-29 12:37:22 +02:00
Philipp Holzer f4ea74447e
Add Feedback :-) 2021-10-29 11:37:09 +02:00
Philipp Holzer 409d909d0f
Restructure HTTPClient for new paradigm 2021-10-28 20:01:03 +02:00
Philipp Holzer fa55928ea3
Replace own VoidLogger with PSR-Standard NullLogger() 2021-10-28 20:01:03 +02:00
Philipp Holzer 184f6cc255
Restructure Logger to new paradigm 2021-10-28 20:01:02 +02:00
Philipp Holzer d778af0b0e
Cleanup namespaces 2021-10-27 20:16:34 +02:00
Philipp Holzer 2ab0d06996
Restructure Storage to new paradigm 2021-10-27 20:00:19 +02:00
Philipp Holzer 58eea1adaa
Cleanup namespaces 2021-10-26 22:11:10 +02:00
Philipp Holzer b216317477
Refactoring Core class structures ... 2021-10-26 22:11:09 +02:00
Philipp Holzer 57b4c008cb
Restructure Session to follow new paradigm 2021-10-26 22:11:07 +02:00
Philipp Holzer ff1a812e1a
Restructure Lock to follow new paradigm 2021-10-26 22:11:06 +02:00
Philipp Holzer ab83d0dd27
Restructure (P)Config to follow new paradigm 2021-10-26 22:11:06 +02:00
Philipp Holzer 68046573a4
Restructure Cache to follow new paradigm 2021-10-26 22:11:06 +02:00
Philipp Holzer 7471b7698b
Adapt filesystem tests 2021-10-05 20:29:52 +02:00
Philipp Holzer b7c262bee6
Fix test 2021-09-12 13:51:03 +02:00
Philipp Holzer 27e4586597
Move path determination logic into the `ConfigFactory` 2021-09-12 13:44:29 +02:00
Philipp Holzer 5702944116
Add the possibility to use a different configuration directory 2021-09-11 14:33:26 +02:00
Philipp Holzer 3eb2abdb2a
Adapt tests 2021-08-25 14:22:42 +02:00
Philipp Holzer 05ecd1e3d4
Replace IHTTPResult for CurlResult usages 2021-08-20 19:58:42 +02:00
Philipp Holzer 1901716479
Lower complexity for valid backends (replace hashmap with a "simple" name array) 2021-08-16 23:27:43 +02:00
Philipp Holzer c17bc55158
Introduce InvalidClassStorageException and adapt the code for it 2021-08-16 23:27:42 +02:00
Philipp Holzer d0536ebea7
Rename ISelectableStorage to IWritableStorage 2021-08-16 23:27:42 +02:00
Philipp Holzer 90c99520bb
Fix Storage Exceptions 2021-08-16 23:27:42 +02:00
Philipp Holzer 29c7552df5
Refactor IStorage 2021-08-16 23:27:42 +02:00
Michael 9ce43ad21d Tests 2021-07-27 06:22:37 +00:00
Hypolite Petovan 681c7c0187 Add ExternalStorage dependency to StorageManager
- Since ExternalStorage isn't instantiated automatically by Dice, we have to provide the dependency manually in StorageManager->getByName
- This requires StorageManager to take one one additional dependency
- Tests are updated with this additional dependency
2021-06-27 23:15:46 -04:00
Tobias Diekershoff 6ea52cfbf8 now... 2021-05-23 09:47:25 +02:00
Tobias Diekershoff 390fa23bce fix failing test for the installer wizard 2021-05-23 09:43:02 +02:00
Philipp Holzer 93c8fdcbd4
Make tests PHPUnit 6.0 compatible 2021-05-16 23:39:03 +02: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
Philipp Holzer 4b38b6aa16
Adapt tests for PhpUnit 7.5 2021-04-04 19:13:40 +02:00
Balázs Úr befc2af504
Merge branch '2021.03-rc' into copyright-2021 2021-03-29 08:45:21 +02:00
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Philipp Holzer b2a7c5ff6c
Fix JIT Config Adapter caching 2021-03-28 23:28:47 +02:00
Hypolite Petovan 3aeaa4ea82 Add test for program execution function installer check 2021-01-07 09:20:03 -05:00
Philipp Holzer 82dd919ce6
Add redis error message for tests 2020-10-18 21:13:29 +02:00
Philipp Holzer b4624f87ae
Activate redis 2020-10-18 21:05:19 +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
Philipp Holzer b70b9d1139
Revert "Replace IHTTPResult for CurlResult usages"
This reverts commit 97167d7b
2020-10-11 23:26:17 +02:00
Philipp Holzer 97167d7b90
Replace IHTTPResult for CurlResult usages 2020-10-10 23:11:30 +02:00
Philipp Holzer d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Philipp Holzer 0f3e4255ca
Introduce Config\Cache Source indicators (File, DB, Server Env) 2020-10-04 20:41:31 +02:00
Philipp Holzer e4263f6fe5
Fix PSR-0 for test classes 2020-09-11 19:38:41 +02:00
Philipp Holzer 672f71a7ff
Disable testImagickNotFound due low impact and test is not working (needs care in the future) 2020-08-19 14:20:07 +02:00
Philipp Holzer 6ad27183a1
Fix Cache tests 2020-08-19 14:20:07 +02:00
nupplaPhil c51128ad20 Fix tests 2020-07-21 03:19:05 -04:00
nupplaPhil 7d714319c8
Add license info at Friendica PHP files 2020-02-09 16:34:23 +01:00
nupplaPhil 23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01: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 8138b05032
fix L10n path after move 2020-01-19 17:11:48 +01:00
Philipp Holzer 2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper) 2020-01-19 16:31:30 +01:00
Philipp Holzer 5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
Philipp Holzer 1c49f1169f
Fix tests (remove superfluous second parameter) 2020-01-18 13:48:29 +01:00
Philipp Holzer ca8ca05051
Add legacy backend storage functionality 2020-01-17 23:55:19 +01:00
Philipp Holzer 3e72e8015b
Improve impossible exception-handler for storage move 2020-01-17 23:55:18 +01:00
Philipp Holzer 732992a296
Improve impossible exception-handler for storage move 2020-01-17 23:55:18 +01:00
Philipp Holzer 9bb5891645
Fix loading SystemResource files 2020-01-17 19:31:34 +01:00
Philipp Holzer d3ab1db29a
Remove annotations and fix test.. 2020-01-10 13:22:04 +01:00
Philipp Holzer 016cfcd846
Fixings
- Rename "facStorage" to "storageManager"
- Fix indentation
- Fix tests
2020-01-10 13:22:03 +01:00