aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'some-account-cleanup' into 'dev'Mario7 days1-1/+20
|\ | | | | | | | | A bit of cleanup for account functions See merge request hubzilla/core!2210
| * A bit of cleanup for account functionsHarald Eilertsen7 days1-1/+20
| |
* | only show the pin if we display the label and fix the testMario12 days1-1/+1
| |
* | remove some redundant spaces in bbcode to html conversion and fix testsMario Vavti13 days1-4/+4
| |
* | handle naked geo URIs and add testsMario13 days1-0/+16
|/
* Throw if channel keys missing in JcsEddsa2022::signHarald Eilertsen2025-06-052-0/+15
|
* guess_image_type(): fix minor issue and add some tests (guessing from ↵Mario Vavti2025-05-201-0/+58
| | | | getimagesize() and Imagick is not tested)
* Add a couple of tests for Widget\MessagesHarald Eilertsen2025-05-191-0/+83
| | | | | Just a couple of basic tests around listing file tags, to make sure the code runs without any warnings.
* Replace english docs with pepecyb's docsHarald Eilertsen2025-05-181-2/+2
|
* Don't access APP:$observer directly in coreHarald Eilertsen2025-05-092-7/+8
| | | | | | | | | Introduce helper functions to access the various fields of the xchan stored in `App::$observer'. This removes direct access to the attribute from core, with the aim of allowing further refactoring later. We can not yet make the `App::$observer` attribute private, though, as it is also accessed directly by some addons.
* fix testMario Vavti2025-04-201-0/+2
|
* strtotime() accounts with the timezone - set it to UTC for the stored timestampMario Vavti2025-04-181-0/+3
|
* fix wrong logicMario Vavti2025-04-181-4/+4
|
* implement until= in message filterMario Vavti2025-04-181-1/+22
|
* add more message filter testsMario Vavti2025-04-181-1/+45
|
* fixes and more test samplesMario Vavti2025-04-171-6/+16
|
* extend MessageFilter::test_condition() to deal with && and || conditions and ↵Mario Vavti2025-04-172-1/+130
| | | | add tests
* improved testsMario Vavti2025-04-141-27/+192
|
* add test for Activity::getUUID() and Avtivity::getMessageID() methodsMario Vavti2025-04-141-0/+73
|
* more fix downstream test for an upstream bugMario2025-04-091-2/+2
|
* fix downstream test for an upstream bugMario2025-04-091-2/+2
|
* refactor unparse_url() to allow to return a custom field set only and add testsMario Vavti2025-02-261-0/+52
|
* Replace the the code to extract epub thumbnailsHarald Eilertsen2025-02-121-4/+141
| | | | | | | | | | The PHP Epub Meta library has a dependency that prevents deployment on 32bit architectures. We also don't need all the functionality in that library, so this patch replaces it with our own simplified code for fetching the cover embedded in Epub archives. We also expand the test suite and clean up some minor issues in the Epubthumbnail class.
* Merge branch 'owa-error-messages' into 'dev'Mario2025-02-011-0/+64
|\ | | | | | | | | Add error message on missing owa auth headers See merge request hubzilla/core!2183
| * Add error message on missing owa auth headersHarald Eilertsen2025-01-291-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | If the /owa endpoint received a request with a missing or invalid Authorization header, it would return an error to the requester, but without any message describing why it failes. This patch adds a message to the error response, so that it will be a bit easier to debug these issues in the future. The owa spec includes a 'message' field in the error response, but makes it optional. Any conforming implementations should accept a response that includes the 'message' field.
* | Fix broken DbaPdo test on postgresqlHarald Eilertsen2025-01-291-2/+2
| |
* | Add an dba_pdo::update methodHarald Eilertsen2025-01-291-6/+47
| | | | | | | | | | This is a convenience funcition to make it easier to update an existing row in a database table.
* | Only skip DbaPdo returning test on actual MySQLHarald Eilertsen2025-01-291-1/+5
| | | | | | | | | | | | MySQL does not support the INSERT...RETURNING clause, while MariaDB does. This patch ensures that the test is not skipped on MariaDB, but only on an actual MySQL system.
* | Add an insert method to dba_pdoHarald Eilertsen2025-01-291-0/+95
|/ | | | | | | | | | | A common use case is to insert a record into a database table, but also instantiate an object from the inserted data. This requires that we know the value of any default or calculated columns that is filled in by the database when the row is inserter. This patch adds a `insert` method to pda_dbo that will insert a row, and immediately fetch the row back from the database – including the default and calculated values not specified by the insert itself.
* add test for item_forwardable()Mario Vavti2024-12-101-0/+132
|
* add test for relative_time()Mario Vavti2024-12-071-0/+53
|
* Fix and refactor module Admin\Accounts part IHarald Eilertsen2024-11-275-0/+278
|
* Ubreak tests: update MagicTest for new behaviour of Magic module.Harald Eilertsen2024-11-191-6/+17
|
* Fix #1879: Emails with + in local part was rejected.Harald Eilertsen2024-11-161-1/+5
|
* Merge branch 'begin-refactoring-module-item' into 'dev'Mario2024-11-101-0/+56
|\ | | | | | | | | Begin refactoring Module\Item See merge request hubzilla/core!2166
| * Module\Item: Move processing of zot and as requests to functions.Harald Eilertsen2024-11-101-0/+56
| | | | | | | | | | These seem to be entirely independent, so moving the body of the if statements to separate functions should be fine.
* | Remove import of non-existing class in test.Harald Eilertsen2024-11-091-1/+0
|/ | | | | This one snuck in by mistake. No harm done, as the actual class was never referenced, but it should still not be there.
* Merge branch 'clean-up-some-dependencies' into 'dev'Mario2024-11-091-0/+21
|\ | | | | | | | | Clean up deps and upgrade EpubMeta See merge request hubzilla/core!2162
| * Thumbs\Epubthumb: Adapt to new version of EPub meta lib.Harald Eilertsen2024-11-081-0/+21
| | | | | | | | Also fixes a few issues and refactor the code a bit.
* | Fix some more deprecation warnings in the tests.Harald Eilertsen2024-11-072-0/+12
|/
* Merge branch 'fix-mariadb-support-for-test-setup' into 'dev'Mario2024-11-061-6/+7
|\ | | | | | | | | tests: Update test db setup script for mariadb See merge request hubzilla/core!2160
| * tests: Update test db setup script for mariadbHarald Eilertsen2024-10-301-6/+7
| | | | | | | | | | | | Mariadb now issues warnings when using the deprecated `mysql` binary. So we make sure to use the proper name for the binary depending on the actual DB engine installed.
* | Merge branch 'php8.2-deprecations' into 'dev'Mario2024-11-032-1/+11
|\ \ | | | | | | | | | | | | Fix deprecations uncovered by running tests on PHP 8.2 See merge request hubzilla/core!2156
| * | tests: Declare private property $output.Harald Eilertsen2024-11-031-0/+10
| | | | | | | | | | | | Uncovered by PHP 8.2 because dynamic properties are deprecated.
| * | tests: Fix typo in UnitTestCase.Harald Eilertsen2024-11-031-1/+1
| | | | | | | | | | | | Uncovered by PHP 8.2 because dynamic properties are deprecated.
* | | Fix missing CSRF checks in admin/account_editHarald Eilertsen2024-11-023-19/+256
|/ /
* / tests: Tests for BBCode cleanup fixHarald Eilertsen2024-10-231-0/+27
|/ | | | Somehow I forgot to include this in the patch that fixed the issue.
* Merge branch 'fix-cleanup-bbcode-url-regex' into 'dev'Mario2024-10-122-10/+31
|\ | | | | | | | | Fix naked URLs immediately followed by a newline See merge request hubzilla/core!2150
| * Change config used by Markdown tests to reflect actual use.Harald Eilertsen2024-10-122-10/+31
| | | | | | | | | | | | | | This makes the configuration used align better with how it is being used in the mdpost addon. This also reveals some issues that are less than ideal for Markdown posts. The relevant test cases have been adjusted to pass with the new config, but have been commented.
* | tests: Add some tests for the Zotlabs\Magic module.Harald Eilertsen2024-10-061-0/+109
|/ | | | | | | Only tests the delegate functionality at the moment. This patch also includes some minor fixes to the Magic module, triggered by the tests with empty destination URL's.