You are here

protected function FileDownloadLinkTokenTest::setUp in File Download Link 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/FileDownloadLinkTokenTest.php, line 40

Class

FileDownloadLinkTokenTest
Class for testing file_download_link formatter with tokens.

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
    ->setUpCurrentUser([
    'uid' => 99,
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('file');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('node_type');
  $this->entity = $this
    ->createTestEntity();
}