public function testExecuteEmptyNoIdsSpecified() { $this->input->expects($this->once())->method('getOption')->with('id')->will($this->returnValue([])); $this->processHandler->expects($this->never())->method($this->anything()); $this->command->execute($this->input, $this->output); $this->assertAttributeEquals(['No process identifiers defined'], 'messages', $this->output); }
public function testExecuteEmptyIdError() { $this->expectContainerGetManagerRegistryAndProcessHandler(); $ids = array(1); $this->input->expects($this->once())->method('getOption')->with('id')->will($this->returnValue($ids)); $this->expectProcessJobRepositoryFindByIds($ids, []); $this->processHandler->expects($this->never())->method($this->anything()); $this->command->execute($this->input, $this->output); $this->assertAttributeEquals(['Process jobs with passed identifiers do not exist'], 'messages', $this->output); }