You are here

class LegacyContentEntityStorageBaseTest in Drupal 8

Tests deprecated methods of ContentEntityStorageBase.

@group Entity @group legacy

@coversDefaultClass \Drupal\Core\Entity\ContentEntityStorageBase

Hierarchy

Expanded class hierarchy of LegacyContentEntityStorageBaseTest

File

core/tests/Drupal/Tests/Core/Entity/LegacyContentEntityStorageBaseTest.php, line 16

Namespace

Drupal\Tests\Core\Entity
View 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

Namesort descending Modifiers Type Description Overrides
LegacyContentEntityStorageBaseTest::testDoLoadMultipleRevisionFieldItems public function Tests doLoadMultipleRevisionsFieldItems triggers an error.