Problem/Motivation
Many moons ago we made the field module not required. This subtlety broke an assumption made by \Drupal\Core\Installer\Form\SiteConfigureForm
. It does$this->moduleInstaller->install(['file', 'update'], FALSE);
under the impression that all of these modules dependencies are required. This is no longer true.
So if you install the testing profile via Drush core.extension:module looks like:
module:
dynamic_page_cache: 0
file: 0
page_cache: 0
system: 0
update: 0
user: 0
testing: 1000
Proposed resolution
Add field to the list of modules to install.