public function ConfigEntityRevisionsRevertFormTest2::prepareRevertedRevision in Config Entity Revisions 1.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php \Drupal\Tests\config_entity_revisions\Unit\ConfigEntityRevisionsRevertFormTest2::prepareRevertedRevision()
- 8 tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php \Drupal\Tests\config_entity_revisions\Unit\ConfigEntityRevisionsRevertFormTest2::prepareRevertedRevision()
Override prepareRevertedRevision so we can be sure it is actually called.
Parameters
ConfigEntityRevisionsEntityInterface $revision: The revision to be published.
Return value
ConfigEntityRevisionsEntityInterface The resulting revision record, ready to be saved.
Overrides ConfigEntityRevisionsRevertFormBase::prepareRevertedRevision
File
- tests/
src/ Unit/ ConfigEntityRevisionsRevertFormBaseTest.php, line 571
Class
Namespace
Drupal\Tests\config_entity_revisions\UnitCode
public function prepareRevertedRevision(ConfigEntityRevisionsEntityInterface $revision) {
$this->prepareRevertedRevisionCalled = TRUE;
return $revision;
}