@trigger_error(__METHOD__.' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId() and RevisionableStorageInterface::loadRevision() instead. See https://www.drupal.org/node/3087295',E_USER_DEPRECATED);
@trigger_error(__METHOD__.' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId() instead. See https://www.drupal.org/node/3087295',E_USER_DEPRECATED);
@trigger_error(__METHOD__.' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableInterface::isLatestRevision() instead. See https://www.drupal.org/node/3087295',E_USER_DEPRECATED);
Changes for core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php: 0 added lines, 64 removed lines.
Original line number
Diff line number
Diff line
@@ -78,70 +78,6 @@ public function testGetDefaultRevisionId() {
$this->assertSame(1,$default_revision_id);
}
/**
* @covers ::getLatestRevisionId
* @group legacy
* @expectedDeprecation Drupal\content_moderation\ModerationInformation::getLatestRevisionId is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId() instead. See https://www.drupal.org/node/3087295
*/
publicfunctiontestGetLatestRevisionId(){
$entity_test_rev=EntityTestRev::create([
'name'=>'Default Revision',
'moderation_state'=>'published',
]);
$entity_test_rev->save();
$entity_test_rev->name='Pending revision';
$entity_test_rev->moderation_state='draft';
$entity_test_rev->save();
// Check that moderation information service returns the correct latest
* @expectedDeprecation Drupal\content_moderation\ModerationInformation::getLatestRevision is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId() and RevisionableStorageInterface::loadRevision() instead. See https://www.drupal.org/node/3087295
* @expectedDeprecation Drupal\content_moderation\ModerationInformation::isLatestRevision is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableInterface::isLatestRevision() instead. See https://www.drupal.org/node/3087295
* @expectedDeprecation Drupal\content_moderation\ModerationInformation::getLatestRevisionId is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId() instead. See https://www.drupal.org/node/3087295