/** * @param array $params * @expectedException \RuntimeException * @expectedExceptionMessage Job parameter format is incorrect * @dataProvider executeWrongFormatDataProvider */ public function testExecuteWrongFormat(array $params) { $this->moduleUninstallHelper->expects($this->never())->method($this->anything()); $this->themeUninstallHelper->expects($this->never())->method($this->anything()); $this->job = new JobComponentUninstall($this->composerInformation, $this->moduleUninstallHelper, $this->themeUninstallHelper, $this->objectManagerProvider, $this->output, $this->quence, $this->status, $this->updater, 'setup:component:uninstall', $params); $this->job->execute(); }