Suggested commit message: Patch #1949724 by webchick, chx: Test more of update.php
At least we need to test update_free_access TRUE and update_free_access FALSE. We need to check, in both cases, for anonymous and non-anonymous users. We need to check for having administer software updates and not having administer software updates. As a plus we need to check for industrious users pre-creating and pre-adding their config directories to settings.php as I think there's a separate code path for that. We need to populate various caches , theme registry, bootstrap system list, module implements etc.
The strangest code paths exist. I now know why automated tests do not fail: they insert a session and do not set update_free_access to TRUE. If you do not set update_free_access to TRUE then update_access_allowed adds the path to the user module to the kernel and from there to the classloader so that it can check for user_access. That path allows for the User entity class to load which is a pre-requisite for successful bootstrap of anonymous users because drupal_anonymous_user returns a User entity.
The credit for the override mechanism is webchick's. She came up with it on IRC. Standing on the shoulders of giants.
PASSED: [[SimpleTest]]: [MySQL] 54,228 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 54,072 pass(es).
FAILED: [[SimpleTest]]: [MySQL] 53,959 pass(es), 0 fail(s), and 1 exception(s).