Files
FreshRSS/tests
InverleandAlexandre Alapetite e18c511b11 Minz: Launch actions case-sensitively (#9620)
Fix [GHSA-gqgh-h7rm-f87f](https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-gqgh-h7rm-f87f)

Problem can be observed by going to https://demo.freshrss.org/i/?a=abouT. It might not be obvious immediately that the action actually launched. But that's because the view being searched for is `index/abouT.phtml`, which won't work when filenames are case sensitive (view shows up empty instead, but the action launches).

Now with the fixes, the following error message will be shown instead:

>  Invalid action name “abouTAction” for controller “FreshRSS_index_Controller”.

This is relevant for e.g. [xExtension-Captcha](https://github.com/FreshRSS/Extensions/tree/main/xExtension-Captcha).

* Minz: Launch actions case-sensitively

* Simplify and more robust

* Stricter classAutoloader

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-25 08:31:58 +01:00
..
2023-11-16 22:43:00 +01:00
2024-09-06 09:06:46 +02:00

FreshRSS tests

See our documentation about running tests.

make test-all

See test.yml for the GitHub Actions automated tests.

See composer.json for the different tests and versions, to be run locally.

Details about this tests folder

Unit tests are based on PHPUnit. Here is an example of manual install:

cd ./tests/
wget -O phpunit.phar https://phar.phpunit.de/phpunit-10.phar
php phpunit.phar --bootstrap bootstrap.php

The shellchecks.sh script is used to safeguard shell scripts from common shell script bugs and to ensure a consistent style. It requires ShellCheck and shfmt.