You are here

protected function DownloadTest::setUp in Media Entity Download 8.2

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DownloadTest.php, line 60

Class

DownloadTest
Simple test to ensure that main page loads with module enabled.

Namespace

Drupal\Tests\media_entity_download\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create bundle and modify form display.
  $this->defaultMediaType = $this
    ->createMediaType('file', [
    'id' => 'testing',
  ]);
  $this->defaultSourceField = $this->defaultMediaType
    ->getSource()
    ->getSourceFieldDefinition($this->defaultMediaType);
}