diff --git a/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php b/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php index 8e37110..f8ada08 100644 --- a/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php +++ b/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php @@ -144,14 +144,14 @@ function testStatusReport() { // Check that the status report initially displays no error. $this->drupalGet('admin/reports/status'); $this->assertNoRaw('Out of date'); - $this->assertNoRaw('Mismatch detected'); + $this->assertNoRaw('Mismatched entity and/or field definitions'); // Enable an entity update and check that we have a dedicated status report // item. $this->container->get('state')->set('entity_test.remove_name_field', TRUE); $this->drupalGet('admin/reports/status'); $this->assertNoRaw('Out of date'); - $this->assertRaw('Mismatch detected'); + $this->assertRaw('Mismatched entity and/or field definitions'); // Enable a db update and check that now the entity update status report // item is no longer displayed. We assume an update function will fix the @@ -159,13 +159,13 @@ function testStatusReport() { $this->enableUpdates('entity_test', 'status_report', 8001); $this->drupalGet('admin/reports/status'); $this->assertRaw('Out of date'); - $this->assertNoRaw('Mismatch detected'); + $this->assertRaw('Mismatched entity and/or field definitions'); // Apply db updates and check that entity updates were not applied. $this->applyUpdates(); $this->drupalGet('admin/reports/status'); $this->assertNoRaw('Out of date'); - $this->assertRaw('Mismatch detected'); + $this->assertRaw('Mismatched entity and/or field definitions'); // Check that en exception would be triggered when trying to apply them with // existing data. @@ -181,7 +181,7 @@ function testStatusReport() { // Check the status report is the same after trying to apply updates. $this->drupalGet('admin/reports/status'); $this->assertNoRaw('Out of date'); - $this->assertRaw('Mismatch detected'); + $this->assertRaw('Mismatched entity and/or field definitions'); // Delete entity data, enable a new update, run updates again and check that // entity updates were not applied even when no data exists. @@ -190,7 +190,7 @@ function testStatusReport() { $this->applyUpdates(); $this->drupalGet('admin/reports/status'); $this->assertNoRaw('Out of date'); - $this->assertRaw('Mismatch detected'); + $this->assertRaw('Mismatched entity and/or field definitions'); } /** diff --git a/core/modules/system/system.install b/core/modules/system/system.install index efd434a..69044a1 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -649,7 +649,7 @@ function system_requirements($phase) { if (\Drupal::entityDefinitionUpdateManager()->needsUpdates()) { $requirements['entity_update']['severity'] = REQUIREMENT_ERROR; // @todo Provide details: https://www.drupal.org/node/2554911 - $requirements['entity_update']['value'] = t('Mismatched entity and/or field definitions.'); + $requirements['entity_update']['value'] = t('Mismatched entity and/or field definitions'); } }