diff --git a/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php b/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php index e62dc87..60d1054 100644 --- a/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php +++ b/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php @@ -82,6 +82,17 @@ public function testUpdateHookN() { // Increment the schema version. \Drupal::state()->set('update_test_schema_version', 8001); $this->runUpdates(); + + $select = \Drupal::database()->select('watchdog'); + $select->orderBy('wid', 'DESC'); + $select->range(0, 5); + $select->fields('watchdog', ['message']); + + $container_cannot_be_saved_messages = array_filter(iterator_to_array($select->execute()), function($row) { + return strpos($row->message, 'Container cannot be saved to cache.') !== FALSE; + }); + $this->assertEqual([], $container_cannot_be_saved_messages); + // Ensure schema has changed. $this->assertEqual(drupal_get_installed_schema_version('update_test_schema', TRUE), 8001); // Ensure the index was added for column a. diff --git a/update.php b/update.php index 5222b96..42adef2 100644 --- a/update.php +++ b/update.php @@ -13,7 +13,7 @@ $autoloader = require_once 'autoload.php'; -$kernel = new UpdateKernel('prod', $autoloader); +$kernel = new UpdateKernel('prod', $autoloader, FALSE); $request = Request::createFromGlobals(); $response = $kernel->handle($request);