// update from 8.x-1.0 to 8.x-1.1.
$update_test_config =
$this->
config('update_test.settings'
);
$system_info =
[ 'update_test_new_module' =>
[ 'project' => 'update_test_new_module',
],
];
$update_test_config->
set('system_info',
$system_info)->
save();
$xml_mapping =
[ 'update_test_new_module' => '1_1',
];
$this->
refreshUpdateStatus($xml_mapping);
// Run the updates for the new module.
$this->
drupalGet('admin/reports/updates/update'
);
$this->
submitForm(['projects[update_test_new_module]' => TRUE
], 'Download these updates'
);
$this->
submitForm(['maintenance_mode' => FALSE
], 'Continue'
);
$this->
assertSession()->
pageTextContains('Update was completed successfully.'
);
$this->
assertSession()->
pageTextContains("Added / updated update_test_new_module successfully"
);
// Parse the info file again to check that the module has been updated to
// 8.x-1.1.
$info =
$info_parser->
parse($installedInfoFilePath);