You are here

protected function WebformElementManagedFilePublicTest::setUp in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/src/Functional/Element/WebformElementManagedFilePublicTest.php \Drupal\Tests\webform\Functional\Element\WebformElementManagedFilePublicTest::setUp()

Overrides WebformBrowserTestBase::setUp

File

tests/src/Functional/Element/WebformElementManagedFilePublicTest.php, line 31

Class

WebformElementManagedFilePublicTest
Test for webform element managed public file handling (DRUPAL-PSA-2016-003).

Namespace

Drupal\Tests\webform\Functional\Element

Code

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

  // Set public file upload support for testing.
  $settings_config = \Drupal::configFactory()
    ->getEditable('webform.settings');
  $settings_config
    ->set('file.file_public', TRUE);
  $settings_config
    ->save();
}