aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Module
Commit message (Collapse)AuthorAgeFilesLines
* 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