Philipp
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
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
150e3a6f42
Add DEVELOP flag for StorageManager for testing purpose only
2022-01-23 20:40:38 +01:00
Philipp
7ec4d42461
Fix test
2022-01-23 20:29:46 +01:00
Philipp
fbefb599dc
Move last legacy API tests & adapt phpunit.xml
2022-01-22 21:29:43 +01:00
Philipp
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
2f13afb4c0
Fix database lock driver test
2022-01-01 21:24:16 +01:00
Philipp
015de29b7b
Replace assertRegExp() assertMatchesRegularExpression()
2021-12-12 20:19:52 +01:00
Philipp
31ca758d4e
Use ArraySubsetAsserts
2021-12-10 21:34:19 +01:00
Philipp
5350e0852d
Add hostname
to Process
entity
2021-11-06 20:21:01 +01:00
Philipp
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
22663c4ae5
Move Introspection to Logger package
2021-10-29 12:37:22 +02:00
Philipp
f4ea74447e
Add Feedback :-)
2021-10-29 11:37:09 +02:00
Philipp
409d909d0f
Restructure HTTPClient for new paradigm
2021-10-28 20:01:03 +02:00
Philipp
fa55928ea3
Replace own VoidLogger with PSR-Standard NullLogger()
2021-10-28 20:01:03 +02:00
Philipp
184f6cc255
Restructure Logger to new paradigm
2021-10-28 20:01:02 +02:00
Philipp
d778af0b0e
Cleanup namespaces
2021-10-27 20:16:34 +02:00
Philipp
2ab0d06996
Restructure Storage to new paradigm
2021-10-27 20:00:19 +02:00
Philipp
58eea1adaa
Cleanup namespaces
2021-10-26 22:11:10 +02:00
Philipp
b216317477
Refactoring Core class structures ...
2021-10-26 22:11:09 +02:00
Philipp
57b4c008cb
Restructure Session to follow new paradigm
2021-10-26 22:11:07 +02:00
Philipp
ff1a812e1a
Restructure Lock to follow new paradigm
2021-10-26 22:11:06 +02:00
Philipp
ab83d0dd27
Restructure (P)Config to follow new paradigm
2021-10-26 22:11:06 +02:00
Philipp
68046573a4
Restructure Cache to follow new paradigm
2021-10-26 22:11:06 +02:00
Philipp
7471b7698b
Adapt filesystem tests
2021-10-05 20:29:52 +02:00
Philipp
b7c262bee6
Fix test
2021-09-12 13:51:03 +02:00
Philipp
27e4586597
Move path determination logic into the ConfigFactory
2021-09-12 13:44:29 +02:00
Philipp
5702944116
Add the possibility to use a different configuration directory
2021-09-11 14:33:26 +02:00
Philipp
3eb2abdb2a
Adapt tests
2021-08-25 14:22:42 +02:00
Philipp
05ecd1e3d4
Replace IHTTPResult for CurlResult usages
2021-08-20 19:58:42 +02:00
Philipp
1901716479
Lower complexity for valid backends (replace hashmap with a "simple" name array)
2021-08-16 23:27:43 +02:00
Philipp
c17bc55158
Introduce InvalidClassStorageException and adapt the code for it
2021-08-16 23:27:42 +02:00
Philipp
d0536ebea7
Rename ISelectableStorage to IWritableStorage
2021-08-16 23:27:42 +02:00
Philipp
90c99520bb
Fix Storage Exceptions
2021-08-16 23:27:42 +02:00
Philipp
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
93c8fdcbd4
Make tests PHPUnit 6.0 compatible
2021-05-16 23:39:03 +02: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
Philipp
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
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
82dd919ce6
Add redis error message for tests
2020-10-18 21:13:29 +02:00
Philipp
b4624f87ae
Activate redis
2020-10-18 21:05:19 +02:00
Philipp
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory
2020-10-18 20:52:27 +02:00
Philipp
efaec26b1d
Fix wrong $this->assert...()
with `self::assert...()
2020-10-18 20:52:27 +02:00
Philipp
b70b9d1139
Revert "Replace IHTTPResult for CurlResult usages"
...
This reverts commit 97167d7b
2020-10-11 23:26:17 +02:00
Philipp
97167d7b90
Replace IHTTPResult for CurlResult usages
2020-10-10 23:11:30 +02:00
Philipp
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
0f3e4255ca
Introduce Config\Cache Source indicators (File, DB, Server Env)
2020-10-04 20:41:31 +02:00
Philipp
e4263f6fe5
Fix PSR-0 for test classes
2020-09-11 19:38:41 +02:00
Philipp
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
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
nupplaPhil
f9d0e57f91
Fix tests & Router is now using Dependency Injection instead of DI Registry
2020-01-19 22:38:33 +01:00
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
nupplaPhil
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone
2020-01-19 21:29:36 +01:00
nupplaPhil
8138b05032
fix L10n path after move
2020-01-19 17:11:48 +01:00
nupplaPhil
2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper)
2020-01-19 16:31:30 +01:00
nupplaPhil
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls
2020-01-19 16:31:16 +01:00
nupplaPhil
1c49f1169f
Fix tests (remove superfluous second parameter)
2020-01-18 13:48:29 +01:00
nupplaPhil
ca8ca05051
Add legacy backend storage functionality
2020-01-17 23:55:19 +01:00
nupplaPhil
3e72e8015b
Improve impossible exception-handler for storage move
2020-01-17 23:55:18 +01:00
nupplaPhil
732992a296
Improve impossible exception-handler for storage move
2020-01-17 23:55:18 +01:00
nupplaPhil
9bb5891645
Fix loading SystemResource files
2020-01-17 19:31:34 +01:00
nupplaPhil
d3ab1db29a
Remove annotations and fix test..
2020-01-10 13:22:04 +01:00
nupplaPhil
016cfcd846
Fixings
...
- Rename "facStorage" to "storageManager"
- Fix indentation
- Fix tests
2020-01-10 13:22:03 +01:00
nupplaPhil
bfae6766bf
Implement Hook::callAll('storage_instance') call for addons and add a description for it.
...
- Remove implicit Dice usage
- Add concrete instance creating
- Adding Hook call for addon instance creating
- Updating doc for Hook
- Updating tests
2020-01-10 13:22:03 +01:00
nupplaPhil
dbd5b5bb6e
- Fixing SystemResource
...
- Adding tests for StorageManager
- Updating doc
2020-01-10 13:21:58 +01:00
nupplaPhil
31457b8566
Replace Lock::release() with DI::lock()->release() and remove Core\Lock
2020-01-07 00:24:10 +01:00
nupplaPhil
634e657d23
Replace Lock::acquire() with DI::lock()->acquire()
2020-01-07 00:20:31 +01:00
nupplaPhil
04d1827eae
Fix test
2019-12-29 20:18:23 +01:00
nupplaPhil
e428bccefb
Add output for installerTest
2019-12-29 20:18:22 +01:00
nupplaPhil
9cb48b0e12
Adapt test for mockery assertion
2019-12-29 20:18:22 +01:00
nupplaPhil
8a072b7fb3
Fix mock test (remove "implicit" usage of previous Dice-setups)
2019-12-29 20:18:21 +01:00
nupplaPhil
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
nupplaPhil
4835f1185f
Remove deprecated App::module - replace with DI::module()->getName()
2019-12-29 20:17:52 +01:00
nupplaPhil
388b963714
Replace BaseObject class with DI::* calls
2019-12-29 20:17:38 +01:00
Hypolite Petovan
58737c7bd8
Skip Imagick Installer test until we can mock class_exists
2019-11-02 13:06:49 -04:00
Philipp
3eb3e0b5ce
Update InstallerTest.php
...
Remove `text.php` usage
2019-10-23 03:22:03 +02:00
Philipp Holzer
a522cf609b
Fix browser language detection (& tests)
2019-10-10 16:39:04 +02:00
Philipp Holzer
49e812f3d3
Bugfix GetAllKeys() of Memcache
...
- Abstract Memcache and Memcached implementation
2019-09-30 14:03:15 +02:00