public function FetchManagerTest::setUp in Stage File Proxy 8
Before a test method is run, setUp() is invoked.
Create new fetchManager object.
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ FetchManagerTest.php, line 65
Class
- FetchManagerTest
- Test stage file proxy module.
Namespace
Drupal\Tests\stage_file_proxy\KernelCode
public function setUp() {
parent::setUp();
$this->fileSystem = $this->container
->get('file_system');
$this
->config('system.file')
->set('default_scheme', 'public')
->save();
$this->client = new Client();
$this->logger = \Drupal::logger('test_logger');
$this->configFactory = $this->container
->get('config.factory');
$this->fetchManager = new FetchManager($this->client, $this->fileSystem, $this->logger, $this->configFactory);
}