public function EntityReferenceRevisionsOrphanRemovalTest::runDeleteForm in Entity Reference Revisions 8
Programmatically runs the 'Delete orphaned composite entities' form.
1 call to EntityReferenceRevisionsOrphanRemovalTest::runDeleteForm()
- EntityReferenceRevisionsOrphanRemovalTest::testNotUsedRevisionDeletion in tests/
src/ Functional/ EntityReferenceRevisionsOrphanRemovalTest.php - Tests that revisions that are no longer used are properly deleted.
File
- tests/
src/ Functional/ EntityReferenceRevisionsOrphanRemovalTest.php, line 122
Class
- EntityReferenceRevisionsOrphanRemovalTest
- Tests orphan composite revisions are properly removed.
Namespace
Drupal\Tests\entity_reference_revisions\FunctionalCode
public function runDeleteForm() {
$this
->drupalGet('admin/config/system/delete-orphans');
$this
->submitForm([], t('Delete orphaned composite revisions'));
$this
->checkForMetaRefresh();
}