# Goals
* execute every changed code fragment from CLI and Web
* confirm, that every scheduled task can run from CLI
* confirm, that deploy works from CLI
* apply dependency patches & test them from CLI & web (when relevant) as well
# Plan (part 1 - addresses)
* in Admin Console
# go to {nav User Management > Users} section
# create 2 active users by using `Add` toolbar button
* on the Front-End
# login using 1st created user
# click on `My Addresses` link in `My Account` sidebox on the left
# click on `New Address` link
# create new address
# confirm, that you're redirected to address list page
# click `Edit` link to edit just created address
# locate "addr-X---" part at the end of page URL (the X is any number)
# change any field value
* in the database
# open "Addresses" table
# locate record, that has "AddressId" column value equals to "X" number obtained above
# change value of "PortalUserId" field to ID of 2nd created user
* on the Front-End
# press the `Update` button
# confirm, that you stayed on same address editing page
* in the database
# open "Addresses" table
# locate record, that has "AddressId" column value equals to "X" number obtained above
# confirm, that previously made field change isn't saved to that database record
# change value of "PortalUserId" field to ID of 1st created user
* on Front-End
# press `Update` button
# confirm, that you're redirected to address list page
# confirm, that made change is visible on address list page
* in the database
# open "Addresses" table
# locate record, that has "AddressId" column value equals to "X" number obtained above
# change value of "PortalUserId" field to ID of 2nd created user
* on Front-End
# press `Delete` link
# agree to address removal in the dialog, that appears
# confirm, that page has reloaded and that address isn't shown
* in the database
# open "Addresses" table
# locate record, that has "AddressId" column value equals to "X" number obtained above
# confirm, that record wasn't deleted
# change value of "PortalUserId" field to ID of 1st created user
* on Front-End
# reload the page
# press `Delete` link
# agree to address removal in the dialog, that appears
# confirm, that page has reloaded and that address isn't shown
* in the database
# open "Addresses" table
# locate record, that has "AddressId" column value equals to "X" number obtained above
# confirm, that record was deleted
TODO# Files removed:
* install.php (in each module) - because module install is allowed to "root" user, not whoever doesn't have permission checking enabled
* modules_event_handler.php, modules_tag_processor.php - because module install is allowed to "root" user, not whoever doesn't have permission checking enabled
* languates_event_handler.php, themes_eh.php - optimization moved to separate task
* ost_eh.php, private_message_eh.php, topics_event_handler.php - optimization moved to separate task
# Goals
* execute every changed code fragment from CLI and Web
* confirm, that every scheduled task can run from CLI
* confirm, that deploy works from CLI
* apply dependency patches & test them from CLI & web (when relevant) as well
* test new `kApplication::permissionCheckingDisabled` method indirectly by confirming that:
* in CLI no permissions are checked
* in Web no permissions are checked for "root" user
TODO
# Plan (output differencies between CLI and Web deploy)
NOTE: Memcache needs to be enabled for this part of the test.
* in the CLI
# run the `in-portal event:run adm:OnDeploy` command
# confirm, that command output is present, when running `do_update` script
# confirm, that no errors happened
# run the `in-portal` command
# confirm, that available commands were listed
* in Admin Console
# go to {nav Tools > System Tools} section
# enter `master:last_cache_rebuild` into `Key Name` field in the `Memory Cache` sub-section
# press the `Get Value` button next to `Key Name` input
# agree to data display in confirmation dialog, that appears
# confirm, that `Key Value` textarea contains value similar to this: `CLI - 24/01/2016 13:42:01` (general format: `CLI - DD/MM/YYYY HH:MM:SS`)
# press the `Deploy` button in the `Project Deployment` sub-section
# enter `master:last_cache_rebuild` into `Key Name` field in the `Memory Cache` sub-section
# press the `Get Value` button next to `Key Name` input
# agree to data display in confirmation dialog, that appears
# confirm, that `Key Value` textarea contains value similar to this: `vm.aik.ninja (10.0.0.1) - 24/01/2016 13:46:05` (general format: `HTTP_HOST (REMOTE_ADDR) - DD/MM/YYYY HH:MM:SS`)
# press the "Reset" button in "Reset Parsed and Cached System Data" sub-section
# confirm, that "Last operation has been successfully completed!" green message appeared on top
# press "Reset & Validate Config Files" button in "Reset Parsed and Cached System Data" sub-section
# confirm, that "Last operation has been successfully completed!" green message appeared on top
# confirm, that debugger report was opened automatically
# confirm, that debugger report contains list of problematic unit configs
# Plan (...)
* in PhpStorm:
# create "custom-sections:OnTest" event
# add an "echo" statement in it
* in CLI:
# run the `in-portal event:run custom-sections:OnTest` command
# confirm, that output contains result of that "echo" statement
**TODO**