/** * Setup before each test. */ public function setUp() { parent::setUp(); $this->manager = new InstallationManager(Factory::createConfig()); $this->manager->setEventDispatcher(new EventDispatcher()); $this->manager->setFilename($this->fileName); $this->fileName = $this->tmpDir . $this->fileName; }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. */ protected function setUp() { parent::setUp(); $this->updateDir = base_path($this->config->getStorage()['update-dir']) . DIRECTORY_SEPARATOR; $this->manager = new UpdateManager(Factory::createConfig()); $this->manager->setEventDispatcher(new EventDispatcher()); $this->manager->setChangeProvider(new GitProvider()); $this->preVerified = FALSE; $this->postVerified = FALSE; $this->filesZipPath = $this->tmpDir . 'test-files.zip'; }
/** * Setup before each test. */ public function setUp() { parent::setUp(); self::$backupFile = $this->tmpDir . 'test-backup.zip'; self::$backupOptions = ['backup-file' => self::$backupFile, 'backup-type' => 'full', 'output' => ['debug' => FALSE]]; $this->manager = new BackupManager($this->getConfig()); $this->manager->setEventDispatcher(new EventDispatcher()); $this->preVerified = FALSE; $this->postVerified = FALSE; if (file_exists($this->tmpDir . 'extracted')) { (new Filesystem())->remove([$this->tmpDir . 'extracted']); } }
/** * Setup before each test. */ public function setUp() { parent::setUp(); $this->builder = new InteractiveFileBuilder(new ArrayInput([], NULL), new ConsoleOutput(), new QuestionHelper()); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. */ protected function setUp() { parent::setUp(); $this->provider = new GitProvider(); }