public function testInteraction()
 {
     $input = ['module' => ['Magento_A', 'Magento_B']];
     $this->setUpExecute();
     $this->moduleUninstaller->expects($this->once())->method('uninstallCode')->with($this->isInstanceOf('Symfony\\Component\\Console\\Output\\OutputInterface'), $input['module']);
     $this->moduleRegistryUninstaller->expects($this->once())->method('removeModulesFromDb')->with($this->isInstanceOf('Symfony\\Component\\Console\\Output\\OutputInterface'), $input['module']);
     $this->moduleRegistryUninstaller->expects($this->once())->method('removeModulesFromDeploymentConfig')->with($this->isInstanceOf('Symfony\\Component\\Console\\Output\\OutputInterface'), $input['module']);
     $this->question->expects($this->once())->method('ask')->will($this->returnValue(false));
     $this->helperSet->expects($this->once())->method('get')->with('question')->will($this->returnValue($this->question));
     $this->command->setHelperSet($this->helperSet);
     $this->tester = new CommandTester($this->command);
     $this->tester->execute($input);
 }
 public function testInteraction()
 {
     $input = ['module' => ['Magento_A', 'Magento_B']];
     $this->setUpExecute($input);
     $this->question
         ->expects($this->once())
         ->method('ask')
         ->will($this->returnValue(false));
     $this->helperSet
         ->expects($this->once())
         ->method('get')
         ->with('question')
         ->will($this->returnValue($this->question));
     $this->command->setHelperSet($this->helperSet);
     $this->tester = new CommandTester($this->command);
     $this->tester->execute($input);
 }