class LegacyContentEntityStorageBaseTest

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

Title Sort descending Modifiers Object type Summary
LegacyContentEntityStorageBaseTest::testDoLoadMultipleRevisionFieldItems public function Tests doLoadMultipleRevisionsFieldItems triggers an error.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.