/**
  * Tests ContentEntityDatabaseStorage::getRevisionDataTable().
  *
  * @param string $revision_data_table
  *   The revision data table to be returned by the mocked entity type.
  * @param string $expected
  *   The expected return value of
  *   ContentEntityDatabaseStorage::getRevisionDataTable().
  *
  * @cover ::__construct()
  * @covers ::getRevisionDataTable()
  *
  * @dataProvider providerTestGetRevisionDataTable
  */
 public function testGetRevisionDataTable($revision_data_table, $expected)
 {
     $this->entityType->expects($this->once())->method('isRevisionable')->will($this->returnValue(TRUE));
     $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->entityType->expects($this->once())->method('getRevisionDataTable')->will($this->returnValue($revision_data_table));
     $this->setUpEntityStorage();
     $actual = $this->entityStorage->getRevisionDataTable();
     $this->assertSame($expected, $actual);
 }
 /**
  * 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()));
 }