Commit graph

49 commits

Author SHA1 Message Date
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
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
b93db8ec2e
Add new test 2019-04-14 16:20:12 +02:00
1480380af6
Basepath Hardening 2019-04-14 16:17:58 +02:00
462973b002
Bugfix BaseURL 2019-04-14 14:53:57 +02:00
90a38a00d8
Adding basepath, urlpath, hostname and ssl_policy to installation 2019-04-14 14:23:06 +02:00
1dd1684885
Hardening save method in BaseURL 2019-04-10 20:38:39 +02:00
40c075cf47
BaseURL hardening 2019-04-09 08:48:04 +02:00
edd4f06ad0
Adding tests 2019-04-09 08:31:18 +02:00
318a3ca785
Create own base URL class which holds the whole base url business logic 2019-04-09 08:31:16 +02:00
23654ce566
Added Update checks
- Logging
- Console
- Admin overview
2019-03-24 22:51:30 +01:00
49def0dc27
Adding ConfigFileSaver and tests 2019-03-24 13:47:35 +01:00
fa31bb6dde
remove basepath and hostname from admin panel and add update path 2019-03-24 13:47:31 +01:00
383a6715c3
Added first version of ConfigCacheSaver 2019-03-23 19:34:54 +01:00
fdb3b26eea Added close test 2019-03-22 23:13:27 -04:00
f63956851b Adding Logger Tests 2019-03-22 23:13:26 -04:00
aee348fa02 Adding Logger Tests 2019-03-22 23:13:26 -04:00
eec4ee3fed Rename & Testfix 2019-03-22 23:13:25 -04:00
7658916540 Added StreamLoggerTest 2019-03-22 23:13:24 -04:00
2b53784094
Reuse existing Strings::getRandomHex function 2019-02-27 18:32:25 +01:00
def502ae2d
Fix namespaces 2019-02-27 12:32:56 +01:00
5fc42a744e
Replace string namespaces with ::class 2019-02-24 13:40:54 +01:00
1a0398a5b3
Merge pull request #6723 from nupplaphil/issue/6658-worker_id
Adding worker ID to log
2019-02-23 08:38:08 -05:00
dddaf8ea1d
improve tests 2019-02-23 01:37:29 +01:00
ee37632695
Adding worker id & functionname to worker logs 2019-02-22 20:10:27 +01:00
52c5ef9a75
bugfix test 2019-02-20 17:37:46 +01:00
466f7a0ee5
adding test 2019-02-20 17:20:17 +01:00
5e5c39b0e1
Refactored DependencyFactory for Profiler 2019-02-17 21:12:12 +01:00
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
6949841947
Removed unnecessary function 2018-11-05 21:17:46 +01:00
47095d70a9
Using random_int directly 2018-11-05 21:16:18 +01:00
049cd963f3
Using random_int directly 2018-11-05 21:15:30 +01:00
c94936a149
copy/paste error 2018-11-05 21:03:55 +01:00
6e10bdf361
Move random Digits to Crypto class 2018-11-05 21:02:54 +01:00
Adam Magness
cace4a8991 Update and rename test class
update and rename test class.
2018-11-05 13:08:33 -05:00
Adam Magness
119b4afddf Create/Update tests
create new test class and update old one.
2018-11-05 07:53:12 -05:00
Roland Häder
bf87ad4fcf Fixed E_NOTICE in listing worker queue and new utilities class added (#5521)
* Fixes for E_NOTICE in workqueue:
- introduced class `Friendica\Util\Arrays` which will hold static methods for
  handling arrays that cannot be done with PHP's functions, like implode() on
  multi-dimensional arrays
- rewrote old-school for() loop to foreach()

* Added intial unit test with some tests on empty delimiters and/or sinle and
multi-dim array.

* Added test for for 3-dimensional arrays, thanks to  nupplaphil's feedback.
2018-07-30 21:24:26 -04:00