User tests: Successful: Unsuccessful:
Pull Request for Issue #13382 .
Added test for that issue, demonstrating how to use JFormHelper::loadFieldClass() properly until JForm fields are covered by the autoloader.
$ ./libraries/vendor/bin/phpunit tests/unit/suites/issues/Issue13382Test
Since the form fields do not work with JLoader (due to the folder name being form/fields
instead of form/field
), the JForm field class must be loaded manually, if (and only then) the filename of a field in any additional field path matches the filename of core field. In the case from the original issue, the field class should look like
<?php
require_once JPATH_LIBRARIES . '/joomla/form/fields/radio.php';
class TestFormFieldRadio extends JFormFieldRadio
{
}
Status | New | ⇒ | Pending |
Category | ⇒ | Unit Tests |
Labels |
Added:
?
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-09 13:44:05 |
Closed_By | ⇒ | brianteeman |
This is going to have to be closed as the tests are no longer part of this repo. Please submit it to the tests repo