public function setUpPassValidation()
 {
     $this->themePackageInfo->expects($this->any())->method('getPackageName')->willReturn('magento/theme-a');
     $this->collection->expects($this->any())->method('getThemeByFullPath')->willReturn($this->getMockForAbstractClass('Magento\\Framework\\View\\Design\\ThemeInterface', [], '', false));
     $this->themeDependencyChecker->expects($this->any())->method('checkChildTheme')->willReturn([]);
     $this->collection->expects($this->any())->method('hasTheme')->willReturn(true);
 }
 /**
  * @param $themePath
  * @dataProvider dataProviderThemeFormat
  */
 public function testExecuteWrongThemeFormat($themePath)
 {
     $this->themePackageInfo->expects($this->once())->method('getPackageName')->willReturn('dummy');
     $themeMock = $this->getMockBuilder('Magento\\Framework\\View\\Design\\ThemeInterface')->getMockForAbstractClass();
     $this->collection->expects($this->once())->method('getThemeByFullPath')->with($themePath)->willReturn($themeMock);
     $this->collection->expects($this->once())->method('hasTheme')->with($themeMock)->willReturn(false);
     $this->tester->execute(['theme' => [$themePath]]);
     $this->assertContains('Theme path should be specified as full path which is area/vendor/name.', $this->tester->getDisplay());
 }