class LegacyContentEntityStorageBaseTest in Drupal 8
Tests deprecated methods of ContentEntityStorageBase.
@group Entity @group legacy
@coversDefaultClass \Drupal\Core\Entity\ContentEntityStorageBase
Hierarchy
- class \Drupal\Tests\Core\Entity\LegacyContentEntityStorageBaseTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of LegacyContentEntityStorageBaseTest
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ LegacyContentEntityStorageBaseTest.php, line 16
Namespace
Drupal\Tests\Core\EntityView source
class LegacyContentEntityStorageBaseTest extends TestCase {
/**
* 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
*/
public function testDoLoadMultipleRevisionFieldItems() {
$storage = new TestContentEntityStorageBase();
$items = $storage
->doLoadMultipleRevisionsFieldItems([]);
$this
->assertSame([], $items);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LegacyContentEntityStorageBaseTest:: |
public | function | Tests doLoadMultipleRevisionsFieldItems triggers an error. |