Skip to content
Snippets Groups Projects
Unverified Commit c51bacbc authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3007606 by amateescu: Force all update path tests to only run one entity per batch

parent 446586b6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -47,16 +47,6 @@ public function setDatabaseDumpFiles() {
* @see taxonomy_update_8503()
*/
public function testTaxonomyUpdateParents() {
// Force the update hook to only run one term per batch.
drupal_rewrite_settings([
'settings' => [
'entity_update_batch_size' => (object) [
'value' => 1,
'required' => TRUE,
],
],
]);
// Run updates.
$this->runUpdates();
......
......@@ -266,6 +266,12 @@ protected function prepareSettings() {
'required' => TRUE,
];
// Force every update hook to only run one entity per batch.
$settings['entity_update_batch_size'] = (object) [
'value' => 1,
'required' => TRUE,
];
$this->writeSettings($settings);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment