You are here

protected function FileMimeTest::setUp in File MIME 8

Overrides WebTestBase::setUp().

Overrides BrowserTestBase::setUp

File

tests/src/Functional/FileMimeTest.php, line 33

Class

FileMimeTest
File MIME tests.

Namespace

Drupal\Tests\filemime\Functional

Code

protected function setUp() {
  parent::setUp();
  $web_user = $this
    ->drupalCreateUser([
    'administer site configuration',
  ]);
  $this
    ->drupalLogin($web_user);
  $this
    ->drupalGet('admin/config/media/filemime');
  $fields = [
    'types' => 'example/x-does-not-exist filemime',
  ];
  $this
    ->submitForm($fields, $this
    ->t('Save configuration'));
}