private function initController(array $globalConfig = []) { $this->controller = new ConfigMigrationController(new ConfigMigrationService(), $globalConfig); $this->console = new AdapterMock(); $this->controller->setConsole($this->console); $this->request = new Request(); // Set the request via reflection $refClass = new \ReflectionClass($this->controller); $property = $refClass->getProperty('request'); $property->setAccessible(true); $property->setValue($this->controller, $this->request); }