User tests: Successful: Unsuccessful:
PR #3447 introduced a new class JInstallerScript
which allows to specify a minimum PHP and Joomla version for extensions by simply setting the respective property in the extensions script file (assuming it extends that class).
The check is done during the preflight
stage.
If you have an extension already using those features, test that it works as expected. Adjust the minimum versions and check that installation succeeds/fails as expected.
If the installation doesn't meet the minimum requirements, the extension should not install.
If the installation meets exactly the minimum requirements, the extension should install without any message.
Installation isn't aborted at all and if the minimum requirement is met exactly, the message is still shown.
None
Pinging @wilsonge since he was the original writer of those lines.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
Labels |
Added:
?
|
Sure thing. I've adjusted my component so it requires Joomla 3.7.3 and PHP 7.1.0 as minimum.
Without this PR you will get a message that it doesn't meet the minimum requirements but it still installs. With the PR applied the installation will be aborted and you get the message that either the PHP version (if you're under PHP 7.1.0) or the Joomla version doesn't meet the requirements.
com_sermonspeaker.zip
I have tested this item
I have tested this item
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-29 22:36:57 |
Closed_By | ⇒ | wilsonge |
@Bakual if you can provide an extension to use for testing it will get tested faster :)