function SqlContentEntityStorageSchemaTest::setUpMockContentEntityStorage
Reinitializes the $storage as a mock object.
3 calls to SqlContentEntityStorageSchemaTest::setUpMockContentEntityStorage()
- SqlContentEntityStorageSchemaTest::testGetSchemaRevisionable in core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php - Tests the schema for revisionable, non-translatable entities.
- SqlContentEntityStorageSchemaTest::testGetSchemaRevisionableTranslatable in core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php - Tests the schema for revisionable, translatable entities.
- SqlContentEntityStorageSchemaTest::testRequiresEntityDataMigration in core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php - Tests requires entity data migration.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php, line 118
Class
Namespace
Drupal\Tests\Core\Entity\SqlCode
protected function setUpMockContentEntityStorage() : void {
$this->storage = $this->createMock(SqlContentEntityStorage::class);
$this->storage
->method('getBaseTable')
->willReturn('entity_test');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.