diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php index 85eb6adc93..c7a51db9cd 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php @@ -58,6 +58,14 @@ public function testMenuUiWithForwardRevisions() { // Create a node. $node = $this->drupalCreateNode(); + // Publish the node with no changes. + $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save and Publish')); + $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()])); + + // Create a forward revision with no changes. + $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save and Create New Draft')); + $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()])); + // Add a menu link and save a new default (published) revision. $edit = [ 'menu[enabled]' => 1,