protected function WebformElementManagedFilePublicTest::setUp in Webform 6.x
Same name and namespace in other branches
- 8.5 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\ElementCode
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();
}