function RevisionRevertFormTest::providerSubmitForm
Same name and namespace in other branches
- 10 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 244
Class
- RevisionRevertFormTest
- Tests reverting a revision with revision revert form.
Namespace
Drupal\FunctionalTests\EntityCode
public static function providerSubmitForm() : array {
$data = [];
$data['not supporting revision log, no version history access'] = [
[
'view test entity',
],
'entity_test_rev',
'view, revert',
[
'@type' => 'entity_test_rev',
'%title' => 'view, revert',
'%revision' => '1',
],
'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',
[
'@type' => 'entity_test_rev',
'%title' => 'view, view all revisions, revert',
'%revision' => '1',
],
'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',
[
'@type' => 'entity_test_revlog',
'%title' => 'view, revert',
'%revision' => '1',
],
'Test entity - revisions log view, revert has been reverted to the revision from Sun, 11 Jan 2009 - 16:00.',
'/entity_test_revlog/manage/1',
];
$data['supporting revision log, version history access'] = [
[],
'entity_test_revlog',
'view, view all revisions, revert',
[
'@type' => 'entity_test_revlog',
'%title' => 'view, view all revisions, revert',
'%revision' => '1',
],
'Test entity - revisions log view, view all revisions, revert has been reverted to the revision from Sun, 11 Jan 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.