diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/ConnectionUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/ConnectionUnitTest.php
index 430a1b6..c6e1578 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Database/ConnectionUnitTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Database/ConnectionUnitTest.php
@@ -243,6 +243,8 @@ public function testConnectionSerialization() {
       $this->fail('The database connection cannot be serialized.');
     }
 
+    $this->assertIdentical(FALSE, strpos($serialized, 'connectionOptions'), 'The connection information was not serialized.');
+
     // Ensure that all properties on the unserialized object are the same.
     $db_reflection = new \ReflectionObject($db);
     $unserialized_reflection = new \ReflectionObject($unserialized);
