- Issue created by @yash.rode
Found while working on
🐛
Revert and Delete actions should not be available for the current revision
Fixed
after making a change to, \Drupal\Core\Entity\ContentEntityStorageBase::deleteRevision()
none of the tests failed, which shows missing test coverage around deleteRevision().
See: https://git.drupalcode.org/project/drupal/-/merge_requests/4359#note_191874
In \Drupal\Tests\node\Functional\NodeRevisionsTest::testRevisions()
what the test coverage should do is create a new entity, try to delete the current revision id, except an exception. Then create a new non-default revision, try to delete the default revision, still get an exception and then create a new revision as default revision, and then verify that the old revision can not be deleted.