Posted by sun on July 11, 2011 at 1:09pm
|Issue tags:||Testing system|
- Major bugs like #1170362: Install profile is disabled for lots of different reasons and core doesn't allow for that are impossible to reproduce, since Simpletest uses an entirely different installation routine for Drupal.
- The (non-interactive) Drupal installer is not tested at all.
- Improve Drupal core's test coverage and reduce/eliminate differences between a site installed via Simpletest vs. manual installation.
- Originally, this was done for performance reasons. Which means that we implemented performance optimizations into the custom Simpletest installation routine, instead of improving the performance of the non-interactive installer.
- The Drupal installer got heavily improved meanwhile. It supports a
non-interactiveflag now, which shortcuts most installation steps.
- Instead of a different, custom installation procedure,
WebTestBase::setUp()should just call the non-interactive installer.
WebTestBase::setUp()'s installation routine with the regular, non-interactive Drupal installer.
Dependencies / spin-offs
Changes in this patch, which should be backported:
- #1679570: TestBase does not always use the correct database connection for handling assertions
- #1679594: node_requirements() breaks Drupal installer
- #1688036: Session regenerate and destroy functions do not adhere to drupal_save_session()
- #1688016: drupal_cron_run() unconditionally re-enables writing of the user session
- #1297136: Use DrupalNullCache for the installer / #1082328: Provide a proper no-op cache.inc
- #630446: Allow SimpleTest to test the non-interactive installer — The interactive installer cannot be tested currently, because the installer contains an explicit check for the HTTP user agent and denies further execution on a positive match. This happens for security reasons, because anyone would be able to install unlimited numbers of testing sites on all production sites on the net. That's a very complex topic on its own, so the discussion on the interactive installer should ideally stay on that issue.
- #1052692-51: New import API for major version upgrades (was migrate module)