S3FileKernelTestBase.php in Acquia Content Hub 8.2
File
modules/acquia_contenthub_s3/tests/src/Kernel/S3FileKernelTestBase.php
View source
<?php
namespace Drupal\Tests\acquia_contenthub_s3\Kernel;
use Drupal\acquia_contenthub_s3\S3FileMap;
use Drupal\KernelTests\KernelTestBase;
abstract class S3FileKernelTestBase extends KernelTestBase {
protected static $modules = [
'acquia_contenthub',
'acquia_contenthub_s3',
'depcalc',
'file',
's3fs',
'user',
];
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('file');
$this
->installEntitySchema('user');
$this
->installSchema('acquia_contenthub_s3', S3FileMap::TABLE_NAME);
$this
->installSchema('s3fs', 's3fs_file');
$this->container
->get('config.factory')
->getEditable('s3fs.settings')
->set('region', 'us-east-1')
->save();
}
}