diff --git a/core/modules/system/src/Tests/Update/UpdatePathTestBase.php b/core/modules/system/src/Tests/Update/UpdatePathTestBase.php index fbd7ab0..6485355 100644 --- a/core/modules/system/src/Tests/Update/UpdatePathTestBase.php +++ b/core/modules/system/src/Tests/Update/UpdatePathTestBase.php @@ -269,23 +269,6 @@ protected function runUpdates() { * {@inheritdoc} */ protected function rebuildAll() { - // We know the rebuild causes notices, so don't exit on failure. - $die_on_fail = $this->dieOnFail; - $this->dieOnFail = FALSE; - // Initialize the container. parent::rebuildall() is not safe to call here. $this->container = \Drupal::getContainer(); - - // Remove the notices we get due to the menu link rebuild prior to running - // the system updates for the schema change. - foreach ($this->assertions as $key => $assertion) { - if ($assertion['message_group'] == 'Notice' && basename($assertion['file']) == 'MenuTreeStorage.php' && strpos($assertion['message'], 'unserialize(): Error at offset 0') !== FALSE) { - unset($this->assertions[$key]); - $this->deleteAssert($assertion['message_id']); - $this->results['#exception']--; - } - } - $this->dieOnFail = $die_on_fail; - } - }