Philipp Holzer
c064a39341
Adapt tests using a content file
2021-05-23 20:30:27 +02:00
Philipp Holzer
a0da84b6b0
Enable testability for HTTPInputData and create a failing test for it :-)
2021-05-23 19:58:09 +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
Philipp Holzer
b983559980
Fix Object parsing for Logging
2021-04-01 20:55:25 +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
b61b3cb182
Fix object handling inside log arrays
2021-03-28 21:50:32 +02:00
Hypolite Petovan
9c0549128b
Make frio the default theme
2021-03-01 10:20:44 -05:00
Hypolite Petovan
9e4a0bf212
Added new test for JsonLD::fetchElementArray type matching
2020-11-11 11:19:27 -05:00
Philipp Holzer
8f0afa6399
Fix StringTest
2020-10-18 20:52:27 +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
30bc65e81e
Remove whitespace before ":" of mail headers
2020-09-28 19:22:29 +02:00
Philipp Holzer
fae7256d82
wrong annotation for preserverGlobalState ..
2020-09-23 19:46:24 +02:00
Philipp Holzer
3eaaf716e9
just log double message IDs, don't discard the email
2020-09-23 19:38:20 +02:00
Philipp Holzer
e2b736d0a9
Fix phpmailer (Case sensitive Check)
2020-09-22 22:48:34 +02:00
Hypolite Petovan
a852455d0e
Merge remote-tracking branch 'friendica/stable' into develop
...
# Conflicts:
# composer.lock
2020-09-20 15:32:58 -04:00
Philipp Holzer
ac1d2cf38f
Transform email header string to header array & replace it at various situations.
2020-09-19 20:16:55 +02:00
Philipp Holzer
4db45aca06
Fix indentation .. again ;-)
2020-09-14 06:34:03 +02:00
Philipp Holzer
9d9489494e
Format/name changes
2020-09-13 10:53:15 +02:00
Philipp Holzer
90346f61ba
Replace library/ASNValue.class.php with phpseclib functions
2020-09-12 20:54:37 +02:00
Philipp Holzer
11ef3895f5
Replace library/asn1.php with phpseclib
2020-09-12 20:44:36 +02:00
Philipp Holzer
e4263f6fe5
Fix PSR-0 for test classes
2020-09-11 19:38:41 +02:00
Hypolite Petovan
121bb85719
Remove expected third parameter value to saveTimestamp() in Util\ProfilerLogger test
2020-07-27 04:20:46 -04:00
Hypolite Petovan
a81e169f45
Add unencrypted header test for HTTPSignature::parseSigheader
2020-07-14 09:52:07 -04:00
Hypolite Petovan
348b71d0b0
Add new Strings::performWithEscapedBlocks methods
...
- Add new BBCode::performWithEscapedTags method
- Add tests
2020-06-08 18:40:20 -04:00
Michael
8823cbf9c4
Ensure that empty arrays are returned as empty arrays
2020-06-07 08:49:53 +00:00
Michael
8868bc3b55
The more tests the better?
2020-06-07 08:39:00 +00:00
Michael
bc616a142b
There is always one last test ...
2020-06-07 08:29:19 +00:00
Michael
1f36c655e1
Two more tests
2020-06-07 08:24:08 +00:00
Michael
775437cb1c
Another test added
2020-06-07 08:15:04 +00:00
Michael
11404646db
Fix test
2020-06-06 19:53:26 +00:00
Michael
0799b721c9
Just some more tests added
2020-06-06 14:59:28 +00:00
Michael
699429ab08
Added test for fetching arrays
2020-06-06 14:16:27 +00:00
Michael
95d997c79d
Added tests for JsonLD class
2020-06-06 12:53:36 +00:00
Hypolite Petovan
dcf59e34c1
Add new Strings::substringReplace method
...
- Add tests for the method
2020-03-30 10:49:53 -04:00
nupplaPhil
7d714319c8
Add license info at Friendica PHP files
2020-02-09 16:34:23 +01:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files
2020-02-09 16:18:46 +01:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes
2020-02-09 15:45:36 +01:00
nupplaPhil
11c831945c
Add logging
2020-02-04 21:32:18 +01:00
nupplaPhil
0b94b84dc7
simplify mail creation
2020-02-04 21:05:33 +01:00
nupplaPhil
ca67e3111c
Set sender data directly
2020-02-02 22:43:42 +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
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
Michael
0a4119adaf
@brief is removed completely
2020-01-19 06:05:23 +00:00
Philipp Holzer
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
Philipp Holzer
c1c4640c1b
remove unneeded todo
2019-11-01 15:49:18 +01:00
Philipp Holzer
f4ad82bcfb
make ACLFormatter::expand() nullable and return an empty array
...
- optimize tests
2019-11-01 15:43:16 +01:00
Philipp Holzer
aa7be41728
Fix ACLFormatterTest
...
- Add nullable to expand() function again
- Add angle bracket support to toString()
2019-11-01 14:13:29 +01:00
Philipp Holzer
3eda62bfa6
Check null for acl-fields
2019-10-28 18:16:10 +01:00
Hypolite Petovan
9f460c6797
Merge pull request #7765 from nupplaphil/task/move_text
...
Move include/text.php to class structure
2019-10-23 15:57:01 -04:00
Philipp Holzer
c9e1098dd2
Adapt naming convention
2019-10-23 21:39:00 +02:00
Philipp Holzer
ad67fd3aa8
Move is_a_date_arg to DateTimeFormat::isYearMonth
...
- Improved functionality
- Added tests
2019-10-23 02:39:28 +02:00
Philipp Holzer
5843a80b6c
Move perms2str to ACLFormatter::aclToString()
...
- including new tests
2019-10-23 00:54:34 +02:00
Philipp Holzer
f65f7f11c3
Move expand_acl to ACLFormatter::expand()
...
- including tests
2019-10-23 00:40:14 +02:00
Philipp Holzer
6b2c28e2d7
Add checks & realpath() usage
...
- New util class "FileSystem"
- Add check in admin summary too
2019-10-22 22:47:37 +02:00
Michael
9c933aacd2
Making test working again (reverting the last change)
2019-10-12 10:56:16 +00:00
dew-git
1d1c089f84
Make test comply.
2019-10-10 21:21:22 -08:00
Philipp Holzer
c65d574ac3
enable codecov
2019-09-30 14:03:14 +02:00
Philipp Holzer
e3e3c1ef28
Some new tests and fixings
2019-09-30 14:03:13 +02:00
Philipp Holzer
08be92a862
Moved BaseURL to App namespace (because similar type as Arguments/Modules/Modes)
2019-08-15 17:23:00 +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
0115329dc6
Add test for Strings::isHex()
2019-05-30 12:26:29 +02:00
Philipp Holzer
b93db8ec2e
Add new test
2019-04-14 16:20:12 +02:00
Philipp Holzer
1480380af6
Basepath Hardening
2019-04-14 16:17:58 +02:00
Philipp Holzer
462973b002
Bugfix BaseURL
2019-04-14 14:53:57 +02:00
Philipp Holzer
90a38a00d8
Adding basepath, urlpath, hostname and ssl_policy to installation
2019-04-14 14:23:06 +02:00
Philipp Holzer
1dd1684885
Hardening save method in BaseURL
2019-04-10 20:38:39 +02:00
Philipp Holzer
40c075cf47
BaseURL hardening
2019-04-09 08:48:04 +02:00
Philipp Holzer
edd4f06ad0
Adding tests
2019-04-09 08:31:18 +02:00
Philipp Holzer
318a3ca785
Create own base URL class which holds the whole base url business logic
2019-04-09 08:31:16 +02:00
Philipp Holzer
23654ce566
Added Update checks
...
- Logging
- Console
- Admin overview
2019-03-24 22:51:30 +01:00
Philipp Holzer
49def0dc27
Adding ConfigFileSaver and tests
2019-03-24 13:47:35 +01:00
Philipp Holzer
fa31bb6dde
remove basepath and hostname from admin panel and add update path
2019-03-24 13:47:31 +01:00
Philipp Holzer
383a6715c3
Added first version of ConfigCacheSaver
2019-03-23 19:34:54 +01:00
Philipp Holzer
fdb3b26eea
Added close test
2019-03-22 23:13:27 -04:00
Philipp Holzer
f63956851b
Adding Logger Tests
2019-03-22 23:13:26 -04:00
Philipp Holzer
aee348fa02
Adding Logger Tests
2019-03-22 23:13:26 -04:00
Philipp Holzer
eec4ee3fed
Rename & Testfix
2019-03-22 23:13:25 -04:00
Philipp Holzer
7658916540
Added StreamLoggerTest
2019-03-22 23:13:24 -04:00
Philipp Holzer
2b53784094
Reuse existing Strings::getRandomHex function
2019-02-27 18:32:25 +01:00
Philipp Holzer
def502ae2d
Fix namespaces
2019-02-27 12:32:56 +01:00
Philipp Holzer
5fc42a744e
Replace string namespaces with ::class
2019-02-24 13:40:54 +01:00
Hypolite Petovan
1a0398a5b3
Merge pull request #6723 from nupplaphil/issue/6658-worker_id
...
Adding worker ID to log
2019-02-23 08:38:08 -05:00
Philipp Holzer
dddaf8ea1d
improve tests
2019-02-23 01:37:29 +01:00
Philipp Holzer
ee37632695
Adding worker id & functionname to worker logs
2019-02-22 20:10:27 +01:00
Philipp Holzer
52c5ef9a75
bugfix test
2019-02-20 17:37:46 +01:00
Philipp Holzer
466f7a0ee5
adding test
2019-02-20 17:20:17 +01:00
Philipp Holzer
5e5c39b0e1
Refactored DependencyFactory for Profiler
2019-02-17 21:12:12 +01:00
Philipp Holzer
6d73dcbe3d
Adding composer & tests
2019-02-17 00:03:38 +01:00
Adam Magness
218f0734be
Rename removeTags to escapeTags
...
rename function and update calls.
2018-11-09 13:29:42 -05:00
Adam Magness
063f0e9cb0
Rename escapeTags to escapeHtml
...
rename function and update calls.
2018-11-09 13:27:58 -05:00
Adam Magness
11cec3229c
Create/Update tests
...
create test for new class, move tests from previous
2018-11-09 08:36:28 -05:00
Philipp Holzer
6949841947
Removed unnecessary function
2018-11-05 21:17:46 +01:00
Philipp Holzer
47095d70a9
Using random_int directly
2018-11-05 21:16:18 +01:00
Philipp Holzer
049cd963f3
Using random_int directly
2018-11-05 21:15:30 +01:00