Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $app = $this->getApp();
     $adapter = new NullAdapter(TEST_ROOT);
     $fs = new Filesystem($adapter);
     $this->container = new UploadContainer($fs);
 }
Beispiel #2
0
 protected function setUp()
 {
     parent::setUp();
     $app = $this->getApp();
     $filesystem = $app['filesystem'];
     if ($filesystem->has('config://config.yml')) {
         $filesystem->delete('config://config.yml');
     }
 }
Beispiel #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->resetDirs();
     $app = $this->getApp();
     $filesystem = $app['filesystem'];
     $filesystem->createDir('extensions://local/bolt/config/config');
     $filesystem->createDir('config://extensions');
     $file = new YamlFile();
     $filesystem->getFile('extensions://local/bolt/config/config/config.yml.dist', $file);
     $file->dump(['blame' => 'drop bear']);
 }