diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php
index 6cea9f58e725eedf1985ca488f2e417fa41906a5..b4ef303d04e504a62db5571572e4038e44438efa 100644
--- a/core/modules/dblog/tests/src/Functional/DbLogTest.php
+++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php
@@ -521,7 +521,10 @@ private function doNode($type) {
 
     // Create a node using the form in order to generate an add content event
     // (which is not triggered by drupalCreateNode).
-    $edit = $this->getContent();
+    $edit = [
+      'title[0][value]' => $this->randomMachineName(8),
+      'body[0][value]'  => $this->randomMachineName(32),
+    ];
     $title = $edit['title[0][value]'];
     $this->drupalGet('node/add/' . $type);
     $this->submitForm($edit, 'Save');
@@ -530,7 +533,9 @@ private function doNode($type) {
     $node = $this->drupalGetNodeByTitle($title);
     $this->assertNotNull($node, new FormattableMarkup('Node @title was loaded', ['@title' => $title]));
     // Edit the node.
-    $edit = $this->getContentUpdate($type);
+    $edit = [
+      'body[0][value]' => $this->randomMachineName(32),
+    ];
     $this->drupalGet('node/' . $node->id() . '/edit');
     $this->submitForm($edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
@@ -572,36 +577,6 @@ private function doNode($type) {
     $this->assertSession()->pageTextContains('node/' . $node->id());
   }
 
-  /**
-   * Creates random content based on node content type.
-   *
-   * @return array
-   *   Random content needed by various node types.
-   */
-  private function getContent() {
-    $content = [
-      'title[0][value]' => $this->randomMachineName(8),
-      'body[0][value]' => $this->randomMachineName(32),
-    ];
-    return $content;
-  }
-
-  /**
-   * Creates random content as an update based on node content type.
-   *
-   * @param string $type
-   *   Node content type (e.g., 'article').
-   *
-   * @return array
-   *   Random content needed by various node types.
-   */
-  private function getContentUpdate($type) {
-    $content = [
-      'body[0][value]' => $this->randomMachineName(32),
-    ];
-    return $content;
-  }
-
   /**
    * Tests the addition and clearing of log events through the admin interface.
    *