diff --git a/core/modules/system/src/Tests/Entity/EntityFieldTest.php b/core/modules/system/src/Tests/Entity/EntityFieldTest.php
index 5414730..dbaa45f 100644
--- a/core/modules/system/src/Tests/Entity/EntityFieldTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityFieldTest.php
@@ -381,6 +381,26 @@ protected function doTestSave($entity_type) {
   }
 
   /**
+   * Test that entities can save an empty string.
+   */
+  public function testEmptyStringSave() {
+    $entity = $this->entityManager
+      ->getStorage('entity_test')
+      ->create([]);
+    $entity_name = $this->randomMachineName();
+    $account = $this->createUser();
+
+    $entity->user_id->target_id = $account->id();
+    $entity->name->value = $entity_name;
+
+    // Set a value for the test field.
+    $entity->field_test_text->value = '';
+    $entity->save();
+    $this->assertTrue((bool) $entity->id(), 'Entity has received an id.');
+    $this->assertIdentical($entity->field_test_text->value, '', 'Text field saved an empty string');
+  }
+
+  /**
    * Tests introspection and getting metadata upfront.
    */
   public function testIntrospection() {
