function RevisionDeleteFormTest::testSubmitForm

Same name in other branches
  1. 10 core/tests/Drupal/FunctionalTests/Entity/RevisionDeleteFormTest.php \Drupal\FunctionalTests\Entity\RevisionDeleteFormTest::testSubmitForm()

Tests revision deletion form.

File

core/tests/Drupal/FunctionalTests/Entity/RevisionDeleteFormTest.php, line 222

Class

RevisionDeleteFormTest
Tests deleting a revision with revision delete form.

Namespace

Drupal\FunctionalTests\Entity

Code

public function testSubmitForm() : void {
    foreach (static::providerSubmitForm() as $case) {
        [
            $permissions,
            $entityTypeId,
            $entityLabel,
            $totalRevisions,
            $expectedLog,
            $expectedMessage,
            $expectedDestination,
        ] = $case;
        $this->doTestSubmitForm($permissions, $entityTypeId, $entityLabel, $totalRevisions, $expectedLog, $expectedMessage, $expectedDestination);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.