public function SqlContentEntityStorageTest::providerTestGetBaseTable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetBaseTable()
Provides test data for testGetBaseTable().
Return value
array[] An nested array where each inner array has the base table to be returned by the mocked entity type as the first value and the expected return value of SqlContentEntityStorage::getBaseTable() as the second value.
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageTest.php, line 151 - Contains \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest.
Class
- SqlContentEntityStorageTest
- @coversDefaultClass \Drupal\Core\Entity\Sql\SqlContentEntityStorage @group Entity
Namespace
Drupal\Tests\Core\Entity\SqlCode
public function providerTestGetBaseTable() {
return array(
// Test that the entity type's base table is used, if provided.
array(
'entity_test',
'entity_test',
),
// Test that the storage falls back to the entity type ID.
array(
NULL,
'entity_test',
),
);
}