$this->entityLastInstalledSchemaRepository =
$this->
createMock(EntityLastInstalledSchemaRepositoryInterface::
class);
$this->storage =
$this->
getMockBuilder('Drupal\Core\Entity\Sql\SqlContentEntityStorage'
) ->
disableOriginalConstructor() ->
getMock();
$this->storage->
expects($this->
any()) ->
method('getBaseTable'
) ->
willReturn('entity_test'
);
// Add an ID field. This also acts as a test for a simple, single-column
// field.
$this->
setUpStorageDefinition('id',
[ 'columns' =>
[ 'value' =>
[ 'type' => 'int',
],
],
]);
} /**
* Tests the schema for non-revisionable, non-translatable entities.
*
* @covers ::__construct
* @covers ::getEntitySchemaTables
* @covers ::initializeBaseTable
* @covers ::addTableDefaults
* @covers ::getEntityIndexName
* @covers ::getFieldIndexes
* @covers ::getFieldUniqueKeys
* @covers ::getFieldForeignKeys
* @covers ::getFieldSchemaData
* @covers ::processIdentifierSchema
*/