function SqlContentEntityStorageTest::testGetTableMappingEmpty
Tests getTableMapping() with an empty entity type.
@legacy-covers ::__construct @legacy-covers ::getTableMapping
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageTest.php, line 460
Class
Namespace
Drupal\Tests\Core\Entity\SqlCode
public function testGetTableMappingEmpty() : void {
$this->setUpEntityStorage();
$mapping = $this->entityStorage
->getTableMapping();
$this->assertSame([
'entity_test',
], $mapping->getTableNames());
$this->assertSame([], $mapping->getFieldNames('entity_test'));
$this->assertSame([], $mapping->getExtraColumns('entity_test'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.