Commit 56990e5f authored by catch's avatar catch
Browse files

Issue #3145501 by quietone, alexpott, Spokje, longwave, plach, catch,...

Issue #3145501 by quietone, alexpott, Spokje, longwave, plach, catch, smustgrave, larowlan, xjm, mxwright: updb error processMultivalueBaseFieldHandler()
parent aec9ebc2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -40,6 +40,11 @@ protected function setDatabaseDumpFiles() {
   * Tests views_post_update_field_names_for_multivalue_fields().
   */
  public function testViewsPostUpdateFieldNamesForMultiValueFields() {
    $key_value_store = \Drupal::keyValue('post_update');
    $existing_update_functions = $key_value_store->get('existing_updates', []);
    $existing_update_functions = array_diff($existing_update_functions, ['views_post_update_field_names_for_multivalue_fields']);
    $key_value_store->set('existing_updates', $existing_update_functions);

    $this->runUpdates();

    $this->assertSession()->pageTextContainsOnce('Updates failed for the entity type View, for test_another_broken_config_multi_value, test_broken_config_multi_value. Check the logs.');
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ function views_removed_post_updates() {
/**
 * Update field names for multi-value base fields.
 */
function views_post_update_field_names_for_multivalue_fields_followup(&$sandbox = NULL) {
function views_post_update_field_names_for_multivalue_fields(&$sandbox = NULL) {
  /** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */
  $view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class);
  $view_config_updater->setDeprecationsEnabled(FALSE);