public function testRunClearProgress() { $this->shell->setRawArgs(['data', '--reset', '--config', 'file/to/config.xml']); $mode = $this->getMock('\\Migration\\Mode\\Data', [], [], '', false); $mode->expects($this->any())->method('run'); $this->modeFactory->expects($this->once())->method('create')->with('data')->willReturn($mode); $this->progress->expects($this->once())->method('reset'); $this->shell->run(); }