function RevisionRevertFormTest::providerSubmitForm

Same name in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/Entity/RevisionRevertFormTest.php \Drupal\FunctionalTests\Entity\RevisionRevertFormTest::providerSubmitForm()

Data provider for testSubmitForm.

File

core/tests/Drupal/FunctionalTests/Entity/RevisionRevertFormTest.php, line 242

Class

RevisionRevertFormTest
Tests reverting a revision with revision revert form.

Namespace

Drupal\FunctionalTests\Entity

Code

public static function providerSubmitForm() : array {
    $data = [];
    $data['not supporting revision log, no version history access'] = [
        [
            'view test entity',
        ],
        'entity_test_rev',
        'view, revert',
        'entity_test_rev: reverted <em class="placeholder">view, revert</em> revision <em class="placeholder">1</em>.',
        'Entity Test Bundle view, revert has been reverted.',
        '/entity_test_rev/manage/1',
    ];
    $data['not supporting revision log, version history access'] = [
        [
            'view test entity',
        ],
        'entity_test_rev',
        'view, view all revisions, revert',
        'entity_test_rev: reverted <em class="placeholder">view, view all revisions, revert</em> revision <em class="placeholder">1</em>.',
        'Entity Test Bundle view, view all revisions, revert has been reverted.',
        '/entity_test_rev/1/revisions',
    ];
    $data['supporting revision log, no version history access'] = [
        [],
        'entity_test_revlog',
        'view, revert',
        'entity_test_revlog: reverted <em class="placeholder">view, revert</em> revision <em class="placeholder">1</em>.',
        'Test entity - revisions log view, revert has been reverted to the revision from Sun, 01/11/2009 - 16:00.',
        '/entity_test_revlog/manage/1',
    ];
    $data['supporting revision log, version history access'] = [
        [],
        'entity_test_revlog',
        'view, view all revisions, revert',
        'entity_test_revlog: reverted <em class="placeholder">view, view all revisions, revert</em> revision <em class="placeholder">1</em>.',
        'Test entity - revisions log view, view all revisions, revert has been reverted to the revision from Sun, 01/11/2009 - 16:00.',
        '/entity_test_revlog/1/revisions',
    ];
    return $data;
}

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