aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Lib
Commit message (Collapse)AuthorAgeFilesLines
* tests: Remove obsolete stubs from Permissions testsHarald Eilertsen2024-06-141-20/+0
| | | | These stubs are no longer needed, as the tests have a db now.
* Upgrade test framework to PHPUnit 10.5Harald Eilertsen2024-05-272-3/+7
|
* Libzot: get_rpost_path was broken for URL's with no port.Harald Eilertsen2024-05-011-0/+34
|
* fix code commentMario2024-03-131-2/+2
|
* fix another regression from last Lib/Config refactor which returned the ↵Mario2024-03-131-0/+12
| | | | default falue in case the value was an array. also add a testcase for this situation
* remove unused includeMario2024-03-071-1/+0
|
* whitespaceMario2024-03-071-3/+1
|
* fix deprecation warning and add testMario2024-03-071-0/+42
|
* Merge branch 'tests/fix-db-and-ci-integration' into 'dev'Mario2024-01-061-3/+44
|\ | | | | | | | | tests: Integrate the DB in "unit" tests. See merge request hubzilla/core!2081
| * tests: Integrate the DB in "unit" tests.Harald Eilertsen2024-01-061-3/+44
| |
* | port test for JcsEddsa2022 from streamsMario2024-01-061-0/+174
|/
* Fix deserialization of config values broken by 69266cd6.Harald Eilertsen2023-12-171-0/+61
| | | | | | | | | | | | | | | 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.
* get devHilmar R2021-03-011-0/+93
|
* :white_check_mark::bulb: Add Unit Tests for AccessList class.Klaus Weidenbach2017-05-011-0/+2
| | | | Also some Doxygen docu for this class.
* :construction_worker: :arrow_up: :heavy_plus_sign: Update PHPUnit to current ↵Klaus Weidenbach2017-03-141-72/+57
| | | | | | | stable 6. Update requirements to PHP7 for dev. Add php-mock-phpunit to mock and stub global functions in a better way.
* [BUGFIX] for fromStandalonePermission().Klaus Weidenbach2016-10-201-0/+110
Not sure if this method is used anywhere, but it should not have worked correctly. This should correct it. Add a unit test for this class.