Skip to content
Snippets Groups Projects
Commit b173b839 authored by catch's avatar catch
Browse files

Issue #3404769 by acbramley, smustgrave: UpdatePathTestBase::prepareSettings...

Issue #3404769 by acbramley, smustgrave: UpdatePathTestBase::prepareSettings writes entity_update_batch_size incorrectly
parent f9037be4
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ protected function prepareSettings() { ...@@ -182,7 +182,7 @@ protected function prepareSettings() {
]; ];
// Force every update hook to only run one entity per batch. // Force every update hook to only run one entity per batch.
$settings['entity_update_batch_size'] = (object) [ $settings['settings']['entity_update_batch_size'] = (object) [
'value' => 1, 'value' => 1,
'required' => TRUE, 'required' => TRUE,
]; ];
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Html;
use Drupal\Component\Render\FormattableMarkup; use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Database\Database; use Drupal\Core\Database\Database;
use Drupal\Core\Site\Settings;
/** /**
* Tests the update path base class. * Tests the update path base class.
...@@ -229,4 +230,11 @@ public function testFixturesSetup() { ...@@ -229,4 +230,11 @@ public function testFixturesSetup() {
$this->assertCount(3, $this->databaseDumpFiles); $this->assertCount(3, $this->databaseDumpFiles);
} }
/**
* Tests that settings are prepared correctly.
*/
public function testPrepareSettings(): void {
$this->assertSame(1, Settings::get('entity_update_batch_size'));
}
} }
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