Commit graph

141 commits

Author SHA1 Message Date
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
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Hypolite Petovan 9c0549128b Make frio the default theme 2021-03-01 10:20:44 -05:00
Michael e1c1744dd1 "wall" in test data 2021-02-15 12:43:23 +00:00
Michael 0f84148413 Some more test data tests 2021-02-15 12:40:05 +00:00
Michael 69d2a7e55d Previous stuff reverted 2021-02-15 06:55:41 +00:00
Michael bbdb0de2ad More test data 2021-02-15 06:46:28 +00:00
Michael 6771d69bb1 Added test data 2021-02-15 06:25:41 +00:00
Michael 1778e57baf Missing field in view 2021-02-15 06:14:53 +00:00
Michael 2f84d874a8 Test data for the "verb" table 2021-02-15 05:59:45 +00:00
Michael e1c79a41d9 We now don't store in the "item" table anymore 2021-02-14 20:27:31 +00:00
Michael ce6ad1aa73 Get rid of the "item" table, enhanced "post" tables 2021-02-13 19:56:03 +00:00
Michael cb92f1334f Rearranged field definition 2021-02-09 17:10:45 +00:00
Michael f1377ce7fb Issue 9906: Improved view speed 2021-02-09 16:35:01 +00:00
Michael 09c2f424be More test data 2021-02-05 07:27:15 +00:00
Michael 15b709594f Improving test data 2021-02-05 07:14:09 +00:00
Michael 239bf686af Just some more tests 2021-02-05 05:53:44 +00:00
Michael 0cd8c78e2d Use the id instead of iid 2021-02-04 22:51:33 +00:00
Michael f92816cf62 More test data 2021-02-04 22:14:53 +00:00
Michael 2b6b72f7fd Fix test data 2021-02-04 17:56:43 +00:00
Michael 2e4ff98699 Set test data 2021-02-04 17:48:51 +00:00
Michael 2282bb4a19 Fix test data 2021-02-04 09:46:29 +00:00
Michael c3398511b4 New table "post-content" 2021-01-30 22:03:53 +00:00
Michael 8deabf5c2e Providing more test data 2021-01-28 23:17:58 +00:00
Hypolite Petovan 82e094179c Rename notify classes according the feature name, not the table name 2021-01-24 09:33:23 -05:00
Michael ff8b578cde Fix the test data / unused function removed 2021-01-17 22:20:46 +00:00
Michael 270d1aeb41 Improve the test data 2021-01-17 22:08:08 +00:00
Michael 6b4245d662 Test the test 2021-01-17 21:39:42 +00:00
Michael d78892fc1b Improved API datasets 2021-01-17 14:57:55 +00:00
Michael 3d4a1a8083 Added "parent-uri-id" to the test data 2021-01-17 12:12:26 +00:00
Michael 730a287b30 Testing why tests are failing 2021-01-16 23:45:43 +00:00
Michael bd91bb21b9 No causer in threads 2021-01-16 07:21:02 +00:00
Michael 352f1fcae2 Hopefully make the tests happy 2021-01-16 07:13:32 +00:00
Michael 818c064c0a The notifications parameters are now simplified 2020-11-25 19:56:39 +00:00
Philipp Holzer 069753416d
Revert "Fix IHTTPResult::getHeader/s() - Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s() - Fix functionality at various places - Adapt CurlResultTest"
This reverts commit 933ea7c9
2020-10-11 23:26:03 +02:00
Philipp Holzer 0449077126
Revert "Fix IHTTPResult::getHeader() - Now returns a string array, like expected - Fix usages - Fix dataset"
This reverts commit 80bd0a4d
2020-10-11 23:25:40 +02:00
Philipp Holzer 80bd0a4d5a
Fix IHTTPResult::getHeader()
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2020-10-10 23:11:30 +02:00
Philipp Holzer 933ea7c9ce
Fix IHTTPResult::getHeader/s()
- Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s()
- Fix functionality at various places
- Adapt CurlResultTest
2020-10-10 23:11:30 +02:00
Philipp Holzer 11ef3895f5
Replace library/asn1.php with phpseclib 2020-09-12 20:44:36 +02:00
Philipp Holzer 3c35901380
Fix "location" entry for contacts in API test dataset 2020-08-21 16:11:37 +02:00
Hypolite Petovan 2b83ec6784 Add more expected data to test fixtures 2020-06-22 17:49:20 -04:00
Hypolite Petovan 5bfbc1224c [Tests] Add test for Module\Api\Twitter\ContactEndpoint
- Add necessary fixture data
2020-06-09 08:39:37 -04:00
Michael 19f2a998d2 Added new field to the test data 2020-05-29 02:25:17 +00:00
Michael 68d3dc1fcc Fix code 2020-05-15 20:58:40 +00:00
Michael 1a9df263ed Reactivating tests, fixing stuff 2020-05-15 20:52:01 +00:00
Michael d70b77288d Call the initial value check in the test 2020-05-15 18:08:06 +00:00
Michael 1efcee030e More missing table entries for tests 2020-05-15 16:17:37 +00:00
Michael 77b4d5fc5f Added test data 2020-05-15 16:00:00 +00:00
Michael 1ec3cc2fdc Fixing test again? 2020-05-02 23:16:42 +00:00
Michael f291b96cbc Fixing tests 2020-05-02 22:49:47 +00:00
Michael 53b0401d6a Fix tests - hopefully 2020-04-26 16:25:46 +00:00
Hypolite Petovan b100b9600e Add rel="noopener noreferrer" to all target="_blank" links
See https://mathiasbynens.github.io/rel-noopener/
2020-02-24 20:07:34 -05:00
nupplaPhil 7d714319c8
Add license info at Friendica PHP files 2020-02-09 16:34:23 +01:00
Philipp Holzer 5ccf41a56f
Add API test case for notification 2020-01-28 22:00:21 +01:00
Philipp Holzer dbd5b5bb6e
- Fixing SystemResource
- Adding tests for StorageManager
- Updating doc
2020-01-10 13:21:58 +01:00
Hypolite Petovan d32de58e34 Add test case to avoid trimming empty image tags 2019-08-06 21:22:46 -04:00
Hypolite Petovan d1db9bc8e6 Add test case for hashtag link list space removal 2019-08-06 08:21:26 -04:00
Hypolite Petovan 515935b241 Add test case for this bug
- Fix whitespaces in MarkdownTest
2019-08-04 10:24:25 -04: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 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 e69138039a
fix api dataset for test 2019-04-09 08:41:26 +02: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 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 80ee411f45 Add test for Text\Markdown::convert
- Add folder for Markdown datasets
2019-03-09 23:29:57 -05:00
Philipp Holzer 199ceeadbf
Adding ConfigCacheLoaderTest 2019-02-10 13:39:48 +01:00
Hypolite Petovan 85eb6affdf Unit test fix 2019-01-21 09:39:14 -05: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 92d3d77e76
Bufixing environment specific assertion problem 2018-10-31 11:03:15 +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
Philipp Holzer 5f9065e00a
smaller about.body 2018-10-11 22:21:05 +02:00
Philipp Holzer b099cba4b4
CurlResult Tests & RegEx fix 2018-10-11 22:18:27 +02:00
Philipp Holzer 00bf0c24b6
CurlResult Tests 2018-10-11 21:19:38 +02:00
Hypolite Petovan 4efcd47807 Put base test config in Yaml dataset 2018-07-16 19:38:16 -04:00
Hypolite Petovan b2b984433c Fix dataset ids for otheruser/frienduser
Remove debug
2018-07-03 23:37:52 -04:00
Hypolite Petovan d31e3b16ff Fix boolean values in test data 2018-07-03 21:22:10 -04:00
Hypolite Petovan 18eb13a598 Fix API test cases
- Add meaningful app->argv/c
- Add support for subfolder install
- Add meaningful image URL from placeholder.com
- Fix incomplete test testApiHelpTestWithXml()
- Use $this->frienduser for direct messages tests
- Fix dataset to have an actual contact relationship
2018-07-02 07:49:29 -04:00
Michael eca43895e1 Fixing tests 2018-06-09 21:46:35 +00:00
Michael f316e96bd1 Now the dataset is said to be valid again. 2018-06-03 16:11:05 +00:00
Michael 09c1b44381 Someone else has to fix this 2018-06-03 11:42:23 +00:00
Michael e232ccf9e0 Trying around ... 2018-06-03 11:38:03 +00:00
Michael 946bfd79ff Just one more ... 2018-06-03 11:29:09 +00:00
Michael 9ade6c2b33 The testdata hadn't contained public contacts 2018-06-03 11:20:22 +00:00
Michael e48b2a3dad Reverting it ... 2018-06-03 11:12:09 +00:00
Michael 058d755372 I guess I broke the test tool :-) 2018-06-03 11:07:24 +00:00
Michael e392491e94 Next try ;-) 2018-06-03 10:58:03 +00:00
Michael b33578c137 Additional data for the test tool 2018-06-03 10:47:40 +00:00
Pierre Rudloff 6a654df444 Add a new contact to test rel=2 in tests
See https://github.com/friendica/friendica/pull/5022#discussion_r187416029
2018-05-10 22:21:55 +02:00
Pierre Rudloff 3195d6e125 Add API tests 2018-05-10 19:12:00 +02:00