public function testCreate()
 {
     $this->objectManagerProvider->expects($this->once())->method('get')->willReturn($this->objectManager);
     $this->objectManager->expects($this->once())->method('get')->with('Magento\\Theme\\Model\\Theme\\ThemeDependencyChecker');
     $this->themeDependencyCheckerFactory = new ThemeDependencyCheckerFactory($this->objectManagerProvider);
     $this->themeDependencyCheckerFactory->create();
 }
 public function setup()
 {
     $this->composerInfo = $this->getMock('Magento\\Framework\\Composer\\ComposerInformation', [], [], '', false);
     $this->packageDependencyChecker = $this->getMock('Magento\\Framework\\Composer\\DependencyChecker', [], [], '', false);
     $this->themeDependencyChecker = $this->getMock('Magento\\Theme\\Model\\Theme\\ThemeDependencyChecker', [], [], '', false);
     $this->themeDependencyCheckerFactory = $this->getMock('Magento\\Setup\\Model\\ThemeDependencyCheckerFactory', [], [], '', false);
     $this->themeDependencyCheckerFactory->expects($this->any())->method('create')->willReturn($this->themeDependencyChecker);
     $this->uninstallDependencyCheck = new UninstallDependencyCheck($this->composerInfo, $this->packageDependencyChecker, $this->themeDependencyCheckerFactory);
 }
 /**
  * Constructor
  *
  * @param ComposerInformation $composerInfo
  * @param DependencyChecker $dependencyChecker
  * @param ThemeDependencyCheckerFactory $themeDependencyCheckerFactory
  */
 public function __construct(ComposerInformation $composerInfo, DependencyChecker $dependencyChecker, ThemeDependencyCheckerFactory $themeDependencyCheckerFactory)
 {
     $this->composerInfo = $composerInfo;
     $this->packageDependencyChecker = $dependencyChecker;
     $this->themeDependencyChecker = $themeDependencyCheckerFactory->create();
 }