aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Module
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'begin-refactoring-module-item' into 'dev'Mario11 days1-0/+56
|\ | | | | | | | | Begin refactoring Module\Item See merge request hubzilla/core!2166
| * Module\Item: Move processing of zot and as requests to functions.Harald Eilertsen11 days1-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 Eilertsen12 days1-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.
* Fix some more deprecation warnings in the tests.Harald Eilertsen2024-11-072-0/+12
|
* Fix missing CSRF checks in admin/account_editHarald Eilertsen2024-11-022-19/+254
|
* 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.
* Tests: Unbreak help test.Harald Eilertsen2024-09-291-2/+2
|
* Improve translation message for help pages.Harald Eilertsen2024-07-241-1/+1
| | | | | Display the target language instead of "your preferred language". Makes it a bit more explicit.
* Add a notice to help pages when defaulting to english.Harald Eilertsen2024-07-241-0/+1
|
* Fallback to english help topic if localized topic is not found.Harald Eilertsen2024-07-231-0/+9
|
* Refactor HelpTest.php.Harald Eilertsen2024-07-231-24/+28
| | | | Move default stubs to a function to make them reusable.
* Redirect help to about page when locale but no topic specified in URLHarald Eilertsen2024-07-231-0/+5
|
* Update API docs for Module test case base class.Harald Eilertsen2024-06-161-6/+98
|
* tests: Add helper expectRedirectTo to module test class.Harald Eilertsen2024-06-161-0/+6
| | | | | Just a shorthand for manually stubbing `goaway` and setting the expectations on the test case.
* Fix warnings exposed by tests.Harald Eilertsen2024-06-131-4/+7
| | | | Mainly missing variables for templates, and channel entries.
* tests: More tests for Module\Rpost.Harald Eilertsen2024-06-131-14/+44
| | | | Also refactor the tests a bit to avoid duplicatng code.
* tests: Module\Rpost shows login form if not authenticated.Harald Eilertsen2024-06-131-0/+13
|
* tests: Add comment to Tests\Unit\Module\RpostTest.Harald Eilertsen2024-06-131-0/+4
|
* tests: Set query string in Module\TestCase::get method.Harald Eilertsen2024-06-131-0/+1
|
* Module\Rpost: Add basic test and fix session access.Harald Eilertsen2024-06-131-0/+31
| | | | | | | | | | | | | Just a basic test to ensure that the module `get()` method behaves somewhat reasonable when no query params are given. Had to make a small change to the Rpost module itself. Since the `$_SESSION` superglobal may not always be set (and is not in the test), use `isset` instead of `array_key_exists` to check if we have saved query params in the session. In general, isset is safer than array_key_exists if there's a chance that the array itself may not exist.
* Upgrade test framework to PHPUnit 10.5Harald Eilertsen2024-05-273-2/+5
|
* Refactor and cleanup Rbmark module + add testsHarald Eilertsen2024-05-153-10/+99
|
* Rework Help module + begin tests for Setup moduleHarald Eilertsen2024-04-303-0/+336