function SqlContentEntityStorageTest::providerTestGetRevisionTable
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetRevisionTable()
- 8.9.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetRevisionTable()
- 11.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetRevisionTable()
Provides test data for testGetRevisionTable().
Return value
array[] A nested array where each inner array has the revision table to be returned by the mocked entity type as the first value and the expected return value of SqlContentEntityStorage::getRevisionTable() as the second value.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageTest.php, line 224
Class
- SqlContentEntityStorageTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Entity%21Sql%21SqlContentEntityStorage.php/class/SqlContentEntityStorage/10" title="A content entity database storage implementation." class="local">\Drupal\Core\Entity\Sql\SqlContentEntityStorage</a> @group Entity
Namespace
Drupal\Tests\Core\Entity\SqlCode
public static function providerTestGetRevisionTable() {
return [
// Test that the entity type's revision table is used, if provided.
[
'entity_test_revision',
'entity_test_revision',
],
// Test that the storage falls back to the entity type ID with a
// '_revision' suffix.
[
NULL,
'entity_test_revision',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.