You are here

protected function DiffRevisionContentModerationTest::drupalPostNodeForm in Diff 8

Override form submission to work with content moderation.

Overrides CoreVersionUiTestTrait::drupalPostNodeForm

File

tests/src/Functional/DiffRevisionContentModerationTest.php, line 53

Class

DiffRevisionContentModerationTest
Tests the revision overview with content moderation enabled.

Namespace

Drupal\Tests\diff\Functional

Code

protected function drupalPostNodeForm($path, array $edit, $submit) {

  // New revisions are automatically enabled, so remove the manual value.
  unset($edit['revision']);
  parent::drupalPostNodeForm($path, $edit, $submit);
}