Inconsistent configuration tests #181
Labels
Code Quality
Enhancement
Outdated
Issue is no longer relevant due to significant changes in the codebase
I'm assuming the intention is that he implementation and 'owner' of these tests is classes/ConfigurationTest.php
The problem is that a lot of the knowledge of test result array keys, and all the error texts, are duplicated in controllers/admin/AdminInformationController.php and install/controllers/http/system.php
Right now system.php seem to be in sync with ConfigurationTest.php, but AdminInformationController.php isn't.
The need for syncing and the duplication of error texts is silly and error-prone.
My suggestion is to move all the logic and and texts over to ConfigurationTest.php and slim down AdminInformationController.php and system.php
Also, if you do a command-line install using install/index_cli.php it doesn't call ConfigurationTest.php at all, bypassing all the tests! Yes, I learned this the hard way, and was why I started digging into this mess :)
The text was updated successfully, but these errors were encountered: