only in patch2: unchanged: --- a/core/modules/node/src/Tests/NodeCreationTest.php +++ b/core/modules/node/src/Tests/NodeCreationTest.php @@ -72,6 +72,12 @@ function testNodeCreation() { $this->drupalGet('node/' . $node->id()); $this->assertText($node->getOwner()->getUsername()); $this->assertText(format_date($node->getCreatedTime())); + + // Check if the node revision checkbox is not rendered on node creation form. + $admin_user = $this->drupalCreateUser(array('administer nodes', 'create page content')); + $this->drupalLogin($admin_user); + $this->drupalGet('node/add/page'); + $this->assertNoFieldById('edit-revision', NULL , 'The revision checkbox is not present.'); } /** only in patch2: unchanged: --- a/core/modules/node/src/Tests/NodeEditFormTest.php +++ b/core/modules/node/src/Tests/NodeEditFormTest.php @@ -111,6 +111,10 @@ public function testNodeEdit() { $first_node_version = node_revision_load($node->getRevisionId()); $second_node_version = node_revision_load($revised_node->getRevisionId()); $this->assertNotIdentical($first_node_version->getRevisionUser()->id(), $second_node_version->getRevisionUser()->id(), 'Each revision has a distinct user.'); + + // Check if the node revision checkbox is rendered on node edit form. + $this->drupalGet('node/'. $node->id() .'/edit'); + $this->assertFieldById('edit-revision', NULL , 'The revision field is present.'); } /**