| Step Description | Expected result |
|---|---|
| Install A fresh 1.7.7.8 on php 7.1 | A selection between BO and FO is displayed |
| Go to the BO | You should have your dashboard showed |
| Go to the Module Catalog" page" | Module Catalog page is displayed correctly |
| Search for the update assistant module and Install it | Module is correctly installed |
| Go to your folder [yourshopname_folder] > module > Autoupgrade | You should have many files and folder, one files named README.md can help you |
| CLI Check Version of module Open a terminal on this folder |
Terminal is open on the folder modules/autoupgrade |
| Launch “php bin/console” | Terminal show you available command with bin/console |
| Launch “php bin/console –version” | Terminal reply : “Update assistant {test-param}Version_Autoupgrade{test-param} " |
| CLI Check Version Available Launch"php bin/console update:check-new-version admin-dev” |
Terminal display a tab : |
| Change your PHP to 7.4 | Php is set to php 7.4 |
| Launch “php bin/console update:check-new-version admin-dev” | Terminal display a tab : |
| Add a zip and xml of {test-param}Last_version_9{test-param} on [yourshop]/[admin_folder]/autoupgrade/download | Folder contain : * Index. php * {test-param}Last_version_9{test-param} .zip * {test-param}Last_version_9{test-param} .xml |
| Launch “php bin/console update:check-new-version admin-dev” | Terminal display a tab : |
| CLI Check Requirement Modify any files from the folder of prestashop |
The file is modified |
| Launch “php bin/console update:check-requirements [admin_folder]” | Terminal display: " Result of prerequisite checks: : Some core files have been altered or removed." and list the different files modified |
| CLI Create Rollback Launch “php bin/console backup:create admin-dev” |
Terminal display at : * start :“INFO - Starting backup…” * end “INFO - Backup completed successfully.” |
| Launch “php bin/console backup:create admin-dev” twice | Terminal display at : * start :“INFO - Starting backup…” * end “INFO - Backup completed successfully." Twice |
| CLI List Rollback Launch " php bin/console backup:list admin-dev” |
Terminal display a tab: |
| CLI Delete Rollback Launch " php bin/console backup:delete admin-dev" |
Terminal display a choice of backup between 0 and 2, the number 3 is to exit the process |
| Launch “3” | Terminal ask for a new command |
| Launch " php bin/console backup:delete admin-dev" | Terminal display a choice of backup between 0 and 2, the number 3 is to exit the process |
| Launch “2” | Terminal display “INFO - The backup file has been successfully deleted” |
| Launch “php bin/console backup:delete –backup=V1.7.7.8_ID admin-dev” | Terminal display “INFO - The backup file has been successfully deleted” |
| CLI Upgrade Launch “php bin/console update:start " |
Terminal display " Not enough arguments (missing: “admin-dir”).” |
| Launch “php bin/console update:start –xml=prestashop_9.0.0.xml admin-dev” | Terminal display “ERROR - Both ‘xml’ and ‘zip’ files attributes must be provided to use the local channel.” |
| Launch “php bin/console update:start –zip=prestashop_{test-param}Last_version_9{test-param} .zip admin-dev” | Terminal display “ERROR - Both ‘xml’ and ‘zip’ files attributes must be provided to use the local channel.” |
| Launch “php bin/console update:start –xml=pr2.xml –zip=pr2.zip admin-dev” | Terminal display “ERROR - File pr2.zip does not exist. Unable to select that channel.” |
| Add a zip on [yourshop]/[admin_folder]/autoupgrade/download | Two different zip and xml are in the folder |
| Launch “php bin/console update:start –xml=prestashop_{test-param}Last_version_9{test-param} .xml –zip=prestashop_{test-param}Last_version_8{test-param} .zip admin-dev” | Terminal display “ERROR - The PrestaShop version in your archive doesn’t match the one in XML file. " |
| Launch “php bin/console update:start admin-dev” | Terminal display at : * Start : ” INFO - Starting update… INFO - Destination version: {test-param}Last_version_8{test-param} “ * End : “INFO - The database has been cleaned. INFO - Shop updated to {test-param}Last_version_8{test-param} . Congratulations! You can now reactivate your shop.” |
| Change your PHP to 8.1 | Php is set to php 8.1 |
| Launch “php bin/console backup:create admin-dev” | Terminal display at : * start :“INFO - Starting backup…” * end “INFO - Backup completed successfully.” |
| Launch “touch config.json” | New files named “config.json” is displayed on the folder autoupgrade |
| Open the files “config.json” in modules/autoupgrade | New file with nothing on it is displayed |
| Put the information on it and Save it | File is set up |
| Return on terminal and launch “php bin/console update:start –config-file-path=config.json admin-dev” | Terminal display : “INFO - Update process will use archive. INFO - Configuration successfully updated. INFO - Starting update… INFO - Destination version: 9.0.0” |
| CLI Start Rollback Launch " php bin/console backup:restore admin-dev” |
Terminal ask to select a backup between 0 and 1, the number 2 is to exit the process |
| Launch “2” | Terminal ask for a new command |
| Launch " php bin/console backup:restore admin-dev" | Terminal ask to select a backup between 0 and 1, the number 2 is to exit the process |
| Launch command “0” | Terminal display at : * start :“INFO - Restoring files …” * end “INFO - Restoration process done. Congratulations! You can now reactivate your store.” |
| Launch command “php bin/console update:start –xml=prestashop_{test-param}Last_version_9{test-param} .xml –zip=prestashop_{test-param}Last_version_9{test-param} .zip admin-dev” | Terminal display : “INFO - Update process will use archive. INFO - Configuration successfully updated. INFO - Starting update… INFO - Destination version: {test-param}Last_version_9{test-param} " |
| Launch command “php bin/console backup:restore –backup=1.7.7.8_ID admin-dev” | Terminal display at : * start :“INFO - Restoring files …” * end “INFO - Restoration process done. Congratulations! You can now reactivate your store..” |