Commit cd42c46c 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

(cherry picked from commit b173b839)
parent 0213c58f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
    ];
+8 −0
Original line number Diff line number Diff line
@@ -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.
@@ -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'));
  }

}