function LegacyContentEntityStorageBaseTest::testDoLoadMultipleRevisionFieldItems
Tests doLoadMultipleRevisionsFieldItems triggers an error.
@covers ::doLoadMultipleRevisionsFieldItems
@expectedDeprecation Calling Drupal\Core\EntityContentEntityStorageBase::doLoadMultipleRevisionsFieldItems() directly is deprecated in drupal:8.8.0 and the method will be made abstract in drupal:9.0.0. Storage implementations should override and implement their own loading logic. See https://www.drupal.org/node/3069692
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ LegacyContentEntityStorageBaseTest.php, line 25
Class
- LegacyContentEntityStorageBaseTest
- Tests deprecated methods of ContentEntityStorageBase.
Namespace
Drupal\Tests\Core\EntityCode
public function testDoLoadMultipleRevisionFieldItems() {
$storage = new TestContentEntityStorageBase();
$items = $storage->doLoadMultipleRevisionsFieldItems([]);
$this->assertSame([], $items);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.