Michael
72bc1238ba
Tests
2021-07-27 06:17:24 +00:00
Michael
6360c960e6
Tests again
2021-07-25 20:49:10 +00:00
Michael
2b41b322bc
Tests
2021-07-25 20:45:09 +00:00
Philipp
ea4b066df3
Fix DBA::lock() testability because of "autocommits"
2021-05-24 22:37:16 +02:00
Michael
2ad3959b56
Removing empty line
2021-05-24 07:45:35 +00:00
Michael
3e303fb366
Test file uploads
2021-05-24 07:43:42 +00:00
Philipp
15216266d9
Add ContentType Injection for HTTPInputData tests
2021-05-23 22:40:41 +02:00
Philipp
a0da84b6b0
Enable testability for HTTPInputData and create a failing test for it :-)
2021-05-23 19:58:09 +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
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Hypolite Petovan
c644d76d28
Allow setting arbitrary keys in the cookie array
2021-01-23 05:42:58 -05:00
Michael
270d1aeb41
Improve the test data
2021-01-17 22:08:08 +00:00
Philipp
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory
2020-10-18 20:52:27 +02:00
Philipp
e2b736d0a9
Fix phpmailer (Case sensitive Check)
2020-09-22 22:48:34 +02:00
Philipp
16591077ac
Fix Database $_SERVER usage and remove old .travis files
2020-08-19 14:20:07 +02:00
Hypolite Petovan
c6ba92c43d
Refactor template engine code
...
- Convert ITemplateEngine interface to abstract class
- Remove dependency to App in FriendicaSmarty and FriendicaSmartyEngine
- Normalize replaceMacro parameter behavior using Smarty template string prefixes
- Remove obsolete FriendicaSmarty->parsed method
- Update unused Smarty directory paths
2020-05-18 01:18:41 -04:00
Michael
56e363b84b
Fix tests
2020-05-17 10:03:11 +00: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
3291728059
Extract System emails from enotify
...
- Removed every SYSTEM_EMAIL occurrence in enotify
- Introduced a "SystemMailBuilder" for build system emails
- Replaced every SYSTEM_EMAIL usage in the classes with calling this builder
- Added tests for this new Builder
- Split the email templates between "base" template for email and concrete usages for different use cases
2020-02-02 22:43:35 +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
174129af94
add missing namespaces/fix wrong class-names
2020-01-19 16:31:35 +01:00
nupplaPhil
d6efc90194
cleanup namespace usages for L10n
2020-01-19 16:31:33 +01:00
nupplaPhil
2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper)
2020-01-19 16:31:30 +01:00
Michael
0a4119adaf
@brief is removed completely
2020-01-19 06:05:23 +00:00
Hypolite Petovan
c742c62f0a
Merge pull request #8129 from nupplaphil/task/cleanup_cache
...
CleanUp Cache namespace
2020-01-18 09:09:47 -05:00
nupplaPhil
424c87195b
CleanUp Cache namespace
...
- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
2020-01-18 15:41:19 +01:00
nupplaPhil
1c49f1169f
Fix tests (remove superfluous second parameter)
2020-01-18 13:48:29 +01:00
Hypolite Petovan
36190d1e79
Merge pull request #8072 from nupplaphil/task/Cache_to_DI
...
Replace Core\Cache wrapper with DI::cache() method
2020-01-10 08:46:03 -05: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
a38b0f7eaf
Move remaining namespaces and delete Core\Cache.php
2020-01-07 00:51:02 +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
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
nupplaPhil
388b963714
Replace BaseObject class with DI::* calls
2019-12-29 20:17:38 +01:00
nupplaPhil
94a8a60841
Add more Cookie tests (create new StaticCookie class for mocking setcookie())
2019-12-09 22:47:08 +01:00
Philipp Holzer
e3e3c1ef28
Some new tests and fixings
2019-09-30 14:03:13 +02:00
Philipp Holzer
d5dd12b8f8
Add Drone CI
...
- Add drone test environment
- Add drone config
- apt phpunit
- Fix api.php
- Fix item.php
- Fix DBStructure
- Check if caching is possible during tests
2019-09-30 14:03:12 +02:00
Philipp Holzer
86bf2ee45a
Rename *CacheDriver to *Cache because they don't act as driver anymore
2019-08-04 10:26:53 +02: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
aefbc703f2
Add some phpdoc
2019-07-27 23:54:14 +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
Hypolite Petovan
0b97b32a59
Merge pull request #7379 from nupplaphil/task/refactor_l10n_for_test
...
Refactor L10n for testing
2019-07-16 16:03:42 -04: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
eb024a3718
Refactor L10n for testing
...
- Moving L10n to L10n\L10n
- Adding constructor information
- Adding to factory
- simplify/speedup tests
2019-07-16 16:44:47 +02:00
Philipp Holzer
438c903c7a
Remove obsolete getAll() call during mocking
2019-07-15 09:42:21 +02:00
Philipp Holzer
4913502922
bugfix: add lost changes due merge
2019-07-14 22:12:45 +02:00
Philipp Holzer
c82127ffb7
Splitting ConfigCache & PConfigCache
...
- Remove IConfigCache & IPConfigCache
- Add new PConfigCache
- Add missing Logger::init() (bugfixing tests)
2019-07-12 22:53:37 +02:00
Philipp Holzer
79fe3c92c7
Fixing Installer - ReplaceMacro
2019-06-07 00:36:10 +02:00
Philipp Holzer
3a0664d827
fixing auto install tests
2019-04-14 14:23:58 +02:00
Philipp Holzer
90a38a00d8
Adding basepath, urlpath, hostname and ssl_policy to installation
2019-04-14 14:23:06 +02:00
Philipp Holzer
d4b23ca8b9
Fixing some AutomaticInstallationConsoleTests
2019-03-22 23:25:23 -04:00
Philipp Holzer
c5973beca4
Fixing some AutomaticInstallationConsoleTests
2019-03-22 23:25:23 -04:00
Philipp Holzer
acd5060ec2
Fixed ConsoleTest
2019-03-22 23:23:50 -04:00
Philipp Holzer
5fc42a744e
Replace string namespaces with ::class
2019-02-24 13:40:54 +01: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
199ceeadbf
Adding ConfigCacheLoaderTest
2019-02-10 13:39:48 +01:00
Philipp Holzer
cb791024e4
Refactor ConfigMockTrait to mocked ConfigCache
2019-02-07 20:44:03 +01:00
Philipp Holzer
90e88d6c35
Bugfixing AutomaticInstallation test
2019-02-04 00:04:16 +01:00
Philipp Holzer
433d6abe8c
Refactoring DBA-mocking tests
...
- Reducing DB-dependencies
- Creating DB-cache mocks
- Creating DB-lock mocks
- Switching to mocked dependencies for Cache/Lock/App
2019-02-02 19:03:15 +01:00
Hypolite Petovan
98d90e131d
Update install to generate config/local.config.php
2018-11-25 01:44:09 -05:00
Hypolite Petovan
6eb6cc94c7
Move config/dbstructure.php to config/dbstructure.config.php
2018-11-25 01:14:44 -05:00
Philipp Holzer
8ad721988b
Refactoring identities to Model\User::identities
2018-11-08 00:38:55 +01:00
Philipp Holzer
83ead5ec48
Test enhancements
2018-11-01 13:44:47 +01:00
Philipp Holzer
70f9d3c596
documentation
2018-11-01 12:48:43 +01:00
Philipp Holzer
4f01a198e1
AutoInstall Test fix
...
- New Mock for Renderer
- No need of prepared assert.ini.php anymore
- Mocking Renderer during Autoinstall
2018-11-01 10:30:44 +01:00
Philipp Holzer
764e1a3cb6
Fixing issue L10n::t()
2018-10-31 12:37:52 +01:00
Philipp Holzer
92d3d77e76
Bufixing environment specific assertion problem
2018-10-31 11:03:15 +01:00
Philipp Holzer
70e240691e
Moved Mocking usage
...
Adding more documentation
2018-10-31 10:39:50 +01:00
Philipp Holzer
0e22c18a9d
Bugfixing & Enhancement
...
- Added Mocking Engine for App, DBA, Config
- Using Mocking Engine for AutomaticInstallationConsoleTest
- Using Mocking Engine for ConfigConsoleTest
- Removing MultiUserConsole - Workaround
2018-10-31 10:16:15 +01:00
Hypolite Petovan
fad99b8619
Switch from dbstructure.json to dbstructure.php
2018-10-22 16:50:55 -04: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
Philipp
4eaeea7889
Config Console Tests ( #5621 )
...
* Config Console Tests
- `MultiUseConsole` is now a testable console
- `ConsoleTest` is a abstract TestClass for console tests
- `ConfigConsoleTest` tests the config console commands
* disable preserve global state because of smarty
* fixed requires & basepath für Console Test
2018-08-17 19:41:46 +00:00