Loading core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -182,7 +182,7 @@ protected function prepareSettings() { ]; // 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, 'required' => TRUE, ]; Loading core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php +8 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ use Drupal\Component\Utility\Html; use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Database\Database; use Drupal\Core\Site\Settings; /** * Tests the update path base class. Loading Loading @@ -229,4 +230,11 @@ public function testFixturesSetup() { $this->assertCount(3, $this->databaseDumpFiles); } /** * Tests that settings are prepared correctly. */ public function testPrepareSettings(): void { $this->assertSame(1, Settings::get('entity_update_batch_size')); } } Loading
core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -182,7 +182,7 @@ protected function prepareSettings() { ]; // 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, 'required' => TRUE, ]; Loading
core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php +8 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ use Drupal\Component\Utility\Html; use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Database\Database; use Drupal\Core\Site\Settings; /** * Tests the update path base class. Loading Loading @@ -229,4 +230,11 @@ public function testFixturesSetup() { $this->assertCount(3, $this->databaseDumpFiles); } /** * Tests that settings are prepared correctly. */ public function testPrepareSettings(): void { $this->assertSame(1, Settings::get('entity_update_batch_size')); } }