User tests: Successful: Unsuccessful:
A Joomla 4 version of the unit test to cover b/c and security fixes in 3.9.25/26
Regardless of that, its a working unit test of the current code in 4.0-dev and can be improved upon in the future.
NOTE: These tests are designed for, and pass, with 4.0-dev as it is today. When the security fixes for Joomla 3.9.26 are rolled into 4.0-dev eventually (by @wilsonge) then these tests SHOULD start to fail and will need true/false tweaking so that those test cases that are fixed by the security patches in Joomla 3.9.26 are now returning false...
run
libraries/vendor/phpunit/phpunit/phpunit tests/Unit/Libraries/Cms/Form/Rule/FilePathRuleTest.php
at the command line.
No testing of this important validation rule that has been subjected to Security issues in Joomla 3
Some working testing based on the current state of Joomla 4.0-dev.
PHPUnit 8.5.13 by Sebastian Bergmann and contributors.
.............. 14 / 14 (100%)
Time: 38 ms, Memory: 8.00 MB
OK (14 tests, 14 assertions)
none
// #32718 for context.
Status | New | ⇒ | Pending |
Category | ⇒ | Unit Tests |
Title |
|
Labels |
Added:
?
?
|
Labels |
Added:
?
Removed: ? |
Labels |
Added:
?
Removed: ? |
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-22 07:51:13 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
Removed: ? |
I have tested this item✅ successfully on c4fbfb9
Unit tests pass on Linux (drone) and Windows (appveyor).
I've verified that test cases are the same as in the corresponding PR #32723 for staging (but of course with different expected results for some due to 3.9.25).
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32724.