Commit graph

410 commits

Author SHA1 Message Date
Philipp Holzer
50d8dbb123
Bugfixing wrong typed password setting 2019-06-10 15:46:51 +02:00
Philipp Holzer
4666b18e5b
Bugfixing empty password setting 2019-06-10 15:40:15 +02:00
Philipp Holzer
357d9b5108
Introduce HiddenString for Config-Values 2019-06-10 14:46:31 +02:00
Philipp Holzer
79fe3c92c7
Fixing Installer - ReplaceMacro 2019-06-07 00:36:10 +02:00
Philipp Holzer
0115329dc6
Add test for Strings::isHex() 2019-05-30 12:26:29 +02:00
Hypolite Petovan
1e90d8efce Add tests for Model\FileTag fileToArray and arrayToFile methods. 2019-05-28 17:05:29 -04:00
Hypolite Petovan
c21a227d0a Add test for bug 7150 2019-05-19 18:52:01 -04:00
Philipp Holzer
d716a3326f
Move Console namespace one level up 2019-05-02 23:17:35 +02:00
Hypolite Petovan
ba3cd1334a Fix Api and BaseObject tests 2019-05-02 11:37:09 -04:00
Philipp Holzer
e604b3239d
fix travis tests 2019-04-21 12:45:46 +02:00
Philipp Holzer
3ca8fa0e00
Support for APCu caching 2019-04-21 12:45:19 +02:00
Hypolite Petovan
e9c230e109
Merge pull request #7018 from nupplaphil/feature/6245-Block_shell
New Command "BlockedServers"
2019-04-20 11:01:01 -04:00
Philipp Holzer
8660f6d86f
Rename BlockedServers to ServerBlock 2019-04-20 16:40:27 +02:00
Philipp Holzer
e062baadf8
Fix redis cache lock driver test 2019-04-20 14:20:31 +02:00
Philipp Holzer
fa71a9a0ce
Improve redis configuration
- basic authentication
- switch database (0 - 15)
2019-04-20 13:40:40 +02:00
Philipp Holzer
f05f02409e
Add update possibility to BlockedServers 2019-04-20 13:24:33 +02:00
Philipp Holzer
7ce76d153a
rename description to reason 2019-04-20 12:54:38 +02:00
Philipp Holzer
55d2473ec2
Add tests & default reason 2019-04-20 12:53:17 +02:00
Philipp Holzer
e25f269aab
New command "BlockedServers" 2019-04-20 10:42:28 +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
58c9566c3d
code style & install-403 fix 2019-04-14 14:24:01 +02:00
Philipp Holzer
5c57f2b09a
adapt help for tests 2019-04-14 14:24:00 +02:00
Philipp Holzer
f2b2451bcc
adding annotation 2019-04-14 14:23:59 +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
fbd056327a
DBA-Logger fix 2019-04-13 20:46:58 +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
e69138039a
fix api dataset for test 2019-04-09 08:41:26 +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
Hypolite Petovan
d6d31f43a1 Add App\Router dependency injection to App
- Moved collectRoutes method from App to App\Router
2019-04-05 23:16:12 -04:00
Hypolite Petovan
7383511855 Added test case for Router->getModuleClass 2019-04-04 07:30:48 -04:00
Philipp Holzer
0a447cb61b
wrong indent 2019-03-30 19:08:47 +01:00
Philipp Holzer
24f5a8c3a1
add tests 2019-03-30 18:57:54 +01:00
Hypolite Petovan
9210767518 Add cover code block encoding edge case in smilies replacement tests 2019-03-25 21:52:35 -04:00
Hypolite Petovan
76414a5169
Merge pull request #6920 from nupplaphil/feature/basepath/hostname_config
Removing basepath/hostname from admin site settings
2019-03-24 20:15:13 -04:00
Philipp Holzer
23654ce566
Added Update checks
- Logging
- Console
- Admin overview
2019-03-24 22:51:30 +01:00
Philipp Holzer
3cf0cb71f1
Fixing tests 2019-03-24 20:41:11 +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
Hypolite Petovan
fb13d0c31b Add tests for api_status_show
- Update test for api_get_last_status()
- Add test class properties declaration
2019-03-23 14:28:54 -04:00
Hypolite Petovan
bb78768fb2 Update tests about api_show_status()
- Remove testApiStatusShowWithRaw()
- Add testApiGetLastStatus()
- Mark testApiStatusShowWithJson() and testApiStatusShowWithXml() as skipped as they require an item id
2019-03-23 14:28:53 -04:00
Philipp Holzer
b4ee1a5b26
Fixing Unittests 2019-03-23 18:44:52 +01:00
Philipp Holzer
cacaec41fb remove currently unused testdata 2019-03-22 23:31:46 -04:00
Philipp Holzer
c150cf4e58 add annotations again 2019-03-22 23:31:46 -04:00
Philipp Holzer
69fa6161e5 Refactor installer 2019-03-22 23:31:45 -04:00
Philipp Holzer
d88dc7484f Optimize testing (reduce code per test) 2019-03-22 23:25:24 -04:00
Philipp Holzer
4e374fa4d3 Fixed AutomaticInstallationConsoleTest 2019-03-22 23:25:24 -04: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
bef952bd16 Fixed ConfigConsoleTest 2019-03-22 23:25:22 -04:00
Philipp Holzer
acd5060ec2 Fixed ConsoleTest 2019-03-22 23:23:50 -04:00
Philipp Holzer
f4ec7c47b9 Bugfix ConfigCacheLoaderTest 2019-03-22 23:23:49 -04:00
Philipp Holzer
1a2527cdba Move AppMode 2019-03-22 23:22:32 -04: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
11a9c5c941 Added VoidLogger for CurResultTest 2019-03-22 23:11:14 -04:00
Philipp Holzer
25b6db6aca Moving Profiling to class 2019-03-22 23:07:39 -04:00
Philipp Holzer
1b45d3fad7 testfix - namespaces 2019-03-22 22:56:58 -04:00
Philipp Holzer
f3c4e6fa3d testfix - namespaces 2019-03-22 22:56:58 -04:00
Hypolite Petovan
58a9a319c5 Add test for bug 2019-03-17 22:36:03 -04:00
Philipp Holzer
8c6e6b5dea
Fixing .htconfig 2019-03-16 20:31:10 +01:00
Philipp Holzer
1acd5c7d22
- Adding additional legacy .htconfig information 2019-03-16 20:06:53 +01:00
Hypolite Petovan
c5073e2036
Prevent side effects with BBCode::convert in testAutoLinking() 2019-03-13 00:40:54 -04:00
Hypolite Petovan
fedf29e023
Add tests for bug #6857 2019-03-11 15:27:22 -04:00
Hypolite Petovan
80ee411f45 Add test for Text\Markdown::convert
- Add folder for Markdown datasets
2019-03-09 23:29:57 -05:00
Hypolite Petovan
eec04b1864 Add tests for autolinker in BBCde::convert 2019-03-09 10:20:51 -05:00
Philipp Holzer
07bd4cec65
Fixing redis cachekey 2019-03-04 21:28:36 +01: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
44953f045e
Merge pull request #6730 from nupplaphil/dba_reconnect
DBA::(re-)connect fix for basePath
2019-02-23 08:45:31 -05: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
5f17ce574f
Fixing DBA::(re-)connect() 2019-02-23 12:50:52 +01:00
Hypolite Petovan
c1896eee34
Merge pull request #6725 from nupplaphil/6691-rendertime-fix
Addon loading fix
2019-02-22 23:53:11 -05:00
Philipp Holzer
dddaf8ea1d
improve tests 2019-02-23 01:37:29 +01:00
Philipp Holzer
b23368b0ea
bugfixing test 2019-02-23 00:51:08 +01:00
Philipp Holzer
1dee89f215
fixing tests and preload config 2019-02-23 00:09:57 +01:00
Philipp Holzer
8c3aebc376
Bugfixings in Config
- replaced usage of "!<unset>!" with null-returns
- fixed bool settings (0/1)
- fixed overriding config-values
- fixed basepath problems
2019-02-22 23:51:13 +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
Hypolite Petovan
256e845c5d
Merge pull request #6641 from nupplaphil/config_followup
Config FollowUp
2019-02-17 17:56:31 -05:00
Philipp Holzer
f5adbd268b
Fixing tests 2019-02-17 21:41:45 +01:00
Philipp Holzer
5e5c39b0e1
Refactored DependencyFactory for Profiler 2019-02-17 21:12:12 +01:00
Philipp Holzer
e1d9d67632
renamed Logger::setLogger() to Logger::init() 2019-02-17 20:44:08 +01:00
Philipp Holzer
80f1feabe5
Refactoring Logging to use Configuration 2019-02-17 20:43:52 +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
88fd871844
refactoring & test fixing 2019-02-17 01:18:21 +01:00
Philipp Holzer
6d73dcbe3d
Adding composer & tests 2019-02-17 00:03:38 +01:00
Philipp Holzer
68c904bbf4
adding parameter to App 2019-02-16 23:19:54 +01:00
Philipp Holzer
5e6e1a8025
Introducing Profiler 2019-02-16 23:11:30 +01:00
Philipp Holzer
11a7f97fe7
friendica-6667 Installer needs to check fileinfo module 2019-02-16 22:17:34 +01:00
Philipp Holzer
199ceeadbf
Adding ConfigCacheLoaderTest 2019-02-10 13:39:48 +01:00
Philipp Holzer
2a42f8dded
Adding ConfigCacheTest 2019-02-10 12:30:13 +01:00
Philipp Holzer
cb791024e4
Refactor ConfigMockTrait to mocked ConfigCache 2019-02-07 20:44:03 +01:00
Philipp Holzer
ef16e1a037
Adding unittest for empty setApp() 2019-02-05 22:56:57 +01:00
Philipp Holzer
104086215c
Fixing tests 2019-02-05 22:03:07 +01:00
Philipp Holzer
90e88d6c35
Bugfixing AutomaticInstallation test 2019-02-04 00:04:16 +01:00
Philipp Holzer
0f5a50b46b
Bugfixing tests 2019-02-03 22:53:39 +01:00
Philipp Holzer
1e0e1674f2
4) Adding Factories to other entrypoints 2019-02-03 22:46:50 +01:00
Philipp Holzer
835b5c00ee
ConsoleTest is now a MockedTest 2019-02-02 19:21:48 +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
cef6757c92 Replace REGISTER_* constants by Module\Register::* ones 2019-01-22 22:24:15 -05:00
Philipp Holzer
2e602afd3e Add Monolog 2019-01-21 10:10:40 -05:00
Hypolite Petovan
2f49c4a058 Revert "Add monolog" 2019-01-21 10:08:09 -05:00
Philipp Holzer
6150c2fa9c Bugfixing 2019-01-21 09:59:11 -05:00
Philipp Holzer
83f187a047 bugfix test 2019-01-21 09:59:10 -05:00
Philipp Holzer
8f9c0fe149 Adding Develop and normal Logging instances 2019-01-21 09:59:08 -05:00
Philipp Holzer
438f31ff05 Fixed BaseObjectTest 2019-01-21 09:58:05 -05:00
Philipp Holzer
fe8f0e0045 Add Monolog 2019-01-21 09:58:05 -05:00
Hypolite Petovan
85eb6affdf Unit test fix 2019-01-21 09:39:14 -05:00
root
061ad380f6 for testApiSearchWithExcludeReplies: q parameter is required. 2019-01-21 09:13:10 -05:00
root
61afd5b3fb refs #6292
APIs show number of comments
- /api/statuses/*_timeline
- /api/search
- /api/favorites

/api/search enhacement
- support exclude_replies parameter
2019-01-21 09:13:09 -05:00
root
ecb28f6e94 # should urlencode to %23 2019-01-21 09:12:36 -05:00
root
9c90cf7caf ApiTest #6274 #6275 2019-01-21 09:12:36 -05:00
root
8de263df8b #6275 - q support hashtag search 2019-01-21 09:12:35 -05:00
root
939364f9a0 API - /search #6274
- fixed: search result always return empty
- add hashtag search: friendica_tag params
- ApiTest & api.md updated
2019-01-21 09:12:35 -05:00
root
b43dd28b7a closes #6272 2019-01-21 09:12:33 -05:00
Hypolite Petovan
5e1ceb57de Escape global namespaced get_app() calls
- Add deprecated status
2019-01-03 21:27:36 -05:00
Michael Vogel
94eca77041
Merge pull request #6315 from MrPetovan/bug/6309-add-fulltext-index-profile
Rework mod/match and mod/msearch
2018-12-27 18:04:06 +01:00
Hypolite Petovan
acaee626f5 Remove include/ requires that are now done directly from Composer 2018-12-24 09:56:25 -05:00
Michael
75e63212d1 Bite by bite ... 2018-12-22 22:56:57 +00:00
Michael
6a501d99af And again tests ... 2018-12-22 22:36:53 +00:00
Michael
732308ce6d Hopefully this fixes the tests again 2018-12-22 22:04:47 +00:00
Hypolite Petovan
458981f75c Replace x() by isset(), !empty() or defaults()
- Remove extraneous parentheses around empty() calls
- Remove duplicate calls to intval(), count() or strlen() after empty()
- Replace ternary operators outputting binary value with empty() return value
- Rewrite defaults() without x()
2018-11-30 09:06:22 -05:00
Hypolite Petovan
0c21bd488f Use constants instead of strings for register_policy 2018-11-26 07:40:44 -05:00
Hypolite Petovan
c964e193b9 Replace *.ini.php by *.config.php in comments 2018-11-25 01:44:51 -05: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
Michael
503c78e3ef Another try to make tests run again 2018-11-18 20:59:40 +00:00
Michael
68936e8fc0 Possibly fix test 2018-11-18 20:40:10 +00:00
Michael Vogel
d577ab98eb
Merge pull request #6104 from nupplaphil/friendica-6101
Finding slow tests
2018-11-10 17:39:42 +01:00
Philipp Holzer
7aae40ae6a
skipping TTL tests 2018-11-09 20:39:47 +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
Adam Magness
916b3e551e format_network_name calls
implement formatNetworkName function
2018-11-08 10:24:47 -05:00
Adam Magness
0e01568ccd escape_tags calls
implement escapeTags function
2018-11-08 10:20:03 -05:00
Adam Magness
a0f65ca7a1 notags calls
implement removeTags function
2018-11-08 10:14:37 -05:00
Philipp Holzer
61971287c4
Fixing tests 2018-11-08 08:11:27 +01:00
Philipp Holzer
8ad721988b
Refactoring identities to Model\User::identities 2018-11-08 00:38:55 +01:00
Philipp Holzer
6949841947
Removed unnecessary function 2018-11-05 21:17:46 +01:00