/** * Tests ContentEntityDatabaseStorage::getDataTable(). * * @cover ::__construct() * @covers ::getDataTable() */ public function testGetDataTable() { $this->entityType->expects($this->once())->method('isTranslatable')->will($this->returnValue(TRUE)); $this->entityType->expects($this->exactly(2))->method('getDataTable')->will($this->returnValue('entity_test_field_data')); $this->setUpEntityStorage(); $this->assertSame('entity_test_field_data', $this->entityStorage->getDataTable()); }
/** * Gets a list of entity type tables. * * @return array * A list of entity type tables, keyed by table key. */ protected function getTables() { return array_filter(array('base_table' => $this->storage->getBaseTable(), 'revision_table' => $this->storage->getRevisionTable(), 'data_table' => $this->storage->getDataTable(), 'revision_data_table' => $this->storage->getRevisionDataTable())); }