You are here

protected function FileDownloadLinkTest::setUp in File Download Link 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/FileDownloadLinkTest.php, line 36

Class

FileDownloadLinkTest
Class for testing file_download_link formatter.

Namespace

Drupal\Tests\file_download_link\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'system',
    'field',
  ]);
  $this
    ->installSchema('file', [
    'file_usage',
  ]);
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('file');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('node_type');
  $this->entity = $this
    ->createTestEntity();
}