Harald Eilertsen
d85c737db7
tests: Add ajax request helper to module test case
...
This is a bit crude, but serves the purpose for now. To emulate an AJAX
request we set the `Content-Type` header to `application/json`, and json
encode the params in the body of the request.
2026-01-26 23:03:07 +01:00
Harald Eilertsen
e289078f82
tests: Fix content-type/length in Module\TestCase
2025-12-21 11:04:25 +01:00
Harald Eilertsen
ddf7fad82f
Set content type/length for module test requests
...
Just use default values of 'text/html' and 0 for now. Should probably be
set to more realistic values at some point, but for now it seems to
work.
This fixes warnings in the OwaTest.
2025-11-20 21:48:53 +01:00
Mario Vavti
1e41c83b35
fix test
2025-04-20 21:43:32 +02:00
Harald Eilertsen
47f109451d
Fix some more deprecation warnings in the tests.
2024-11-07 17:29:54 +01:00
Harald Eilertsen
38c947590e
Fix missing CSRF checks in admin/account_edit
2024-11-02 14:42:00 +00:00
Harald Eilertsen
62cbd87e71
Update API docs for Module test case base class.
2024-06-16 08:57:09 +02:00
Harald Eilertsen
72453c49f8
tests: Add helper expectRedirectTo to module test class.
...
Just a shorthand for manually stubbing `goaway` and setting the
expectations on the test case.
2024-06-16 08:56:43 +02:00
Harald Eilertsen
93a45be181
tests: Set query string in Module\TestCase::get method.
2024-06-13 13:34:20 +02:00
Harald Eilertsen
cad82d12d2
Upgrade test framework to PHPUnit 10.5
2024-05-27 06:17:05 +00:00
Harald Eilertsen
5da0cc138f
Refactor and cleanup Rbmark module + add tests
2024-05-15 08:28:19 +00:00
Harald Eilertsen
7c34a3676d
Rework Help module + begin tests for Setup module
2024-04-30 06:59:19 +00:00