aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tests: Set db charset from test config.tests/test-db-setup-wipHarald Eilertsen2023-12-282-3/+11
| | | | | | | | MySql and PostgreSQL does of course have different names for charsets, so we have to explicitly define them in the respective phpunit.xml files. This also allows testing with other charsets if there should be a need for that, though I think utf8 should cover everything and then some.
* ci: stop on error and show verbose output.Harald Eilertsen2023-12-281-1/+1
|
* ci: Typo in CI test config env vars.Harald Eilertsen2023-12-281-1/+1
|
* ci: Use mariadb-client instead, bookworm don't ship mysql-client.Harald Eilertsen2023-12-281-1/+1
|
* ci: Add mysql client to the container image.Harald Eilertsen2023-12-281-1/+1
|
* ci: Enable db testing in CI.Harald Eilertsen2023-12-282-17/+53
|
* tests: Reenable coverage reporting in test config.Harald Eilertsen2023-12-281-0/+9
|
* tests: Set proper env vars in phpunit config.Harald Eilertsen2023-12-281-9/+6
|
* tests: Specify db type as string in env vars.Harald Eilertsen2023-12-281-1/+9
|
* tests: Remove some annotations that caused warnings.Harald Eilertsen2023-12-281-6/+1
|
* Merge branch 'dev' into tests/test-db-setup-wipHarald Eilertsen2023-12-279-81/+198
|\
| * do not double process quoted stringsMario2023-12-211-0/+5
| |
| * changelogMario2023-12-201-0/+1
| |
| * changelogMario2023-12-201-0/+5
| |
| * Revert "changelog"Mario2023-12-206-36/+26
| | | | | | | | This reverts commit 3aefe23184c25c1fc0865313d13902cabfb934d3.
| * changelogMario2023-12-206-26/+36
| |
| * move App::$install check to Config::Load() as suggested by HaraldMario2023-12-201-7/+2
| |
| * Merge branch 'fix-config-deserialization' into 'dev'Mario2023-12-202-6/+76
| |\ | | | | | | | | | | | | Fix deserialization of config values broken by 69266cd6. See merge request hubzilla/core!2077
| | * Fix deserialization of config values broken by 69266cd6.Harald Eilertsen2023-12-172-6/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should fix issue #1828. This patch makes it explicit that we store arrays in the config as json encoded arrays, while we allow both json encoded and PHP serialized arrays to be deserialized correctly. Unless it's a brand new install, the existing data in the database will be PHP serialized. I've also added a hardening measure in case we fall back to PHP unserialize, making sure we're not vulnerable to a PHP Object Injection attack. This means that deserializing arrays containing PHP objects will no longer work, but afaict we never do that anyways, so I don't think that should break anything.
| * | Merge branch 'extend-siteinfo' into 'dev'Mario2023-12-202-0/+22
| |\ \ | | | | | | | | | | | | | | | | Add active addons and blocked sites to siteinfo (html) See merge request hubzilla/core!2079
| | * | Add active addons and blocked sites to siteinfo (html)Harald Eilertsen2023-12-182-0/+22
| |/ / | | | | | | | | | | | | | | | | | | | | | This adds information about addons activated on the hub, as well as which other sites this hub won't federate with in the HTML version of siteinfo. Based on suggestions by @rockyiii@huby.infozoo.de.
| * | use reqiure_once() - second part of issue #1827Mario2023-12-171-1/+1
| | |
| * | fix loop as described in issue #1827Mario2023-12-171-0/+6
| | |
| * | changelogMario2023-12-171-0/+1
| | |
| * | Merge branch 'translations-nb_no' into 'dev'Mario2023-12-172-72/+76
| |\ \ | | | | | | | | | | | | | | | | More translations for Norwegian Bokmål (nb_NO) See merge request hubzilla/core!2075
| | * | More translations for Norwegian Bokmål (nb_NO)Harald Eilertsen2023-12-162-72/+76
| | | |
| * | | changelogMario2023-12-171-0/+8
| | |/ | |/|
* | | tests: Enable and fix incomplete tests.Harald Eilertsen2023-12-272-25/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the tests now have access to the database, there's no longer any need for mocking or stubbing functions that uses the db. As the codebase relies on global state and static class functions (aka classes as namespace), stubbing these are not straight forward and complicates the test code, and reliability. With access to the database, we can now perform these tests by populating the db tables with the content relevant for the test, and perform the actual tests to verify that the code behaves as expected given the db content we've created. In the tests I enabled in this patch, I've explicitly set the expected configuration in the db using the available API's in the code itself. While it would also be possible to add more permanent fixtures to set the db in the expected state, doing it dynamically like this has some advantages. It allows very specific setups for the test that we may not want to be set of every test. The photo factory test to ignore Image Magick is a good example of that. We may want to also test the opposite, that Image Magick is selected if the flag is not set (and the extention is available.) Also, the fixtures themselves are not more informative than the table column names they contain, so comments would be needed to document both the content and how it fits into the test environment. With the more dynamic approach the test code becomes more self documenting.
* | | Fix some deprecation warnings.Harald Eilertsen2023-12-262-1/+8
| | |
* | | Merge branch 'dev' into tests/test-db-setup-wipHarald Eilertsen2023-12-16618-16627/+73757
|\| |
| * | check return from Config::Load() and retry on failure plus cleanupMario Vavti2023-12-141-30/+57
| |/
| * return if we could not fetch the authorMario Vavti2023-12-141-8/+7
| |
| * Merge branch 'dev' of https://framagit.org/hubzilla/core into devMario Vavti2023-12-141-1/+1
| |\
| | * typoMario2023-12-131-1/+1
| | |
| * | add the app terms before syncing - otherwise the terms will be reset at the ↵Mario Vavti2023-12-081-0/+10
| |/ | | | | | | other end
| * if it is not an array do not attempt count()Mario Vavti2023-12-081-1/+1
| |
| * typoMario2023-12-061-1/+1
| |
| * changelogMario2023-12-061-0/+5
| |
| * more issue #1820Mario2023-12-061-0/+1
| |
| * css fixesMario2023-12-041-2/+3
| |
| * require acl_selectors.php - fix issue #1820Mario2023-11-301-0/+1
| |
| * changelogMario2023-11-271-2/+6
| |
| * Merge branch 'dev' into 'dev'Mario2023-11-272-4/+8
| |\ | | | | | | | | | | | | Update doubleleft.css and doubleright.css according to v.8.8 default.css See merge request hubzilla/core!2074
| | * Update doubleleft.css and doubleright.css according to v.8.8 default.csszlaxy2023-11-272-4/+8
| |/
| * changelogMario2023-11-251-1/+1
| |
| * update changelogMario2023-11-241-0/+65
| |
| * like in get_cached_actor() also remove fragment in get_actor()Mario2023-11-231-0/+3
| |
| * case insensitive digest algoMario2023-11-221-1/+2
| |
| * remove follow (does not make any sense to add follow link of the logged in ↵Mario2023-11-211-1/+1
| | | | | | | | channel), add startpage
| * add additional observer and channel info to nav if applicableMario2023-11-211-6/+18
| |