public function S3fsConfigFormTest::testS3fsConfigurationForm in S3 File System 8.2
Test the S3fs config form.
File
- src/
Tests/ S3fsConfigFormTest.php, line 41
Class
- S3fsConfigFormTest
- Tests s3fs configuration form.
Namespace
Drupal\s3fs\TestsCode
public function testS3fsConfigurationForm() {
$edit['bucket'] = 's3fs-testing-bucket';
$edit['region'] = 'us-east-1';
$edit['use_cname'] = 1;
$edit['domain'] = 'domaincheck.com';
$edit['encryption'] = 'AES256';
$edit['use_https'] = 1;
$edit['root_folder'] = 'rootfoldercheck';
$edit['presigned_urls'] = '60|private_files/*';
$edit['saveas'] = 'video/*';
$edit['torrents'] = 'big_files/*';
$this
->drupalPostForm('admin/config/media/s3fs', $edit, $this
->t('Save configuration'));
$this
->assertText($this
->t('The configuration options have been saved.'), $this
->t('Saved configuration'));
}