function SqlContentEntityStorageTest::providerTestGetRevisionDataTable

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetRevisionDataTable()
  2. 10 core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetRevisionDataTable()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetRevisionDataTable()

Provides test data for testGetRevisionDataTable().

Return value

array[] A nested array where each inner array has the revision data table to be returned by the mocked entity type as the first value and the expected return value of SqlContentEntityStorage::getRevisionDataTable() as the second value.

File

core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php, line 301

Class

SqlContentEntityStorageTest
@coversDefaultClass \Drupal\Core\Entity\Sql\SqlContentEntityStorage @group Entity

Namespace

Drupal\Tests\Core\Entity\Sql

Code

public function providerTestGetRevisionDataTable() {
    return [
        // Test that the entity type's revision data table is used, if provided.
[
            'entity_test_field_revision',
            'entity_test_field_revision',
        ],
        // Test that the storage falls back to the entity type ID with a
        // '_field_revision' suffix.
[
            NULL,
            'entity_test_field_revision',
        ],
    ];
}

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